I wanna make something like the table in the picture.So far i only managed to do this:  \documentclass{article} \usepackage{longtable} \setlength\LTleft{-110pt}  \setlength\LTright{\fill}   \begin{document}  \begin{longtable}{lllll}  \caption{Quick guide to GPU terms}\\ \hline \bfseries Type &\bfseries Descriptive name &\bfseries Closest Term &\bfseries Official term &\bfseries Definition\\ \hline \endfirsthead \hline \endlastfoot \hline Program abstractions       &Vectorizable Loop         &Vectorizable Loop       &Grid     &Vectorizable Loop       \\        \hline (put in this space the above title vertically)   &some     &some       &some      &some                                   \\       \hline (same as above)                                        &some     &some       &some      &some                                   \\       \hline  Machine object          &Thread SIMD               & Thread Vector            &  Warp    &      SIMD Processor\\ \hline (put in this space the above title vertically)&some     & some                         &  some      &   some\\                  \hline (same as above)&some                          & some                         &  some      &   some\\                  \hline  Processing Hardware &some                          & some                         &  some      &   some\\                  \hline (put in this space the above title vertically)&some                          & some            &  some      &   some\\              \hline (same as above)&some                          & some                         &  some      &   some\\                  \hline  Memory Hardware     &some                          & some                         &  some      &   some\\                  \hline (put in this space the above title vertically)&some   & some                         &  some      &   some\\               \hline (same as above)&some                          & some                         &  some      &   some\\                  \hline  \end{longtable}  \end{document}   Can anyone point how to do this?


How to automatically search and assign a macro around items from a list in ConTeXt?

Suppose I have a document like this, in ConTeXt:  \define[1]\mymacro{{\it #1}} \starttext     This is some text. There are some key words in this text,     but I need the code to automatically find     and treat it as if `\mymacro{}` was     written around it. \stoptext   Given a list of words, is there a way to have ConTeXt mark those words, such that \mymacro{} is treated as being around them?  E.g. if the list of words was: key, written, as if, then the output would make "key", "written", "as if" in italics.  This will be used for more complex functions, such as automatically placing in pictures with a filename matching those the key words, e.g.:  \define[1]\mymacro{     #1 \externalfigure[#1][width=\paperwidth] }   Is there any way to have ConTeXt automatically treat key words as having a macro on them, even if the macro isn't manually written in?


How to prevent execution of "sudo rm -rf --no-preserve-root / " command?

After going through this  I'm quite scared!  It's not that I don't want to use sudo rm command, but I want to inhibit the execution of the sudo rm -rf --no-preserve-root / command. If this command can ruin a motherboard, Why does it even exist ? or Why should it even exist ?


What are the best metrics for evaluating a software QA team's performance?  I am looking for metrics similar to the ones below:  1. Test Efficiency   Test Efficiency = ((A-C)  /  (A+B))*100   A = Defects found by test team   B = Defects Found by customer   C = Total number of Invalid defects found during Phase "A".    2. Defect Leakage can be calculated using   Defect Leakage = (A  /  (B-C))*100    Where   A = Total Defects found in production.   B = Total defect found by test team.   C = Total number of Invalid defects found during Phase "B".    3. Defect Rejection Ratio   Defect Rejection Ratio = ( A  /  B) * 100   A = Number of defects rejected by development team   B = Total number of defects raised   This metric is important for measuring the efficiency of a tester: while recording defects, a tester should not waste development team’s time by creating invalid defects.


Inverse of any element in a group of matrices

I came across the following question in an under graduate course examination:     Let $G$ be a group of all matrices of the form $  \pmatrix{x&x\\x&x}$, where $0\neq x\in \Bbb R$ under matrix multiplication. Find the inverse of any element in $G$.   It appears to me that the question is wrongly framed because any matrix of the given form doesn't have inverse due to the fact that its determinant is zero.


Hi I wanted to know what the differences between returning and exiting from the main function are. What happens behind the scenes when each of them are invoked, and how is the control returned in each case. I would really appreaciate it if someone could dive deep into this subject.


How To bind A dropdownlist from enum in asp.net MVC using C#

I am trying to bind a Html.DropDownList from Enum. Can anyone help me thanks in advance.


cp command saying directory does not exist when it does

I'm writing a bash script and in it I'm doing something like the following:  #!/bin/sh read -p "Enter target directory: " target_dir cp some/file.txt $target_dir/exists/for/sure/   When I run this shell script I see and input:  ./my_script.sh Enter target directory: ~/my_dir   But I get the error/output:  cp: directory ~/my_dir/exists/for/sure/ does not exist   And, as I'm trying to make obvious: That directory 100% exists. i.e. I can run the following without receiving any error:  cd ~/my_dir/exists/for/sure/   What's going on here?


Why does a plot of a reciprocal function using pgfplots look wrong?

I am trying to plot the function 1/x^2 but the result is obviously wrong, here is how it looks like    here is the code  \begin{center}      \begin{tikzpicture}      \begin{axis}[      %xlabel=$x$,     %ylabel={$f(x) = x^2 - x +4$}   ]      \addplot[blue] {1/(x^2)};     \end{axis}     \end{tikzpicture} \end{center}   Any suggestions on how to fix this?


Probability that two randomly selected breaking points on a stick forms a triangle

I am working on a probability problem and here is what I have so far.     A stick with fixed length $L$ is broken at two points randomly.  Find the probability that the resulting three shorter sticks will form a triangle.   I let $X_1$ and $X_2$ be points on the stick , and without loss of generality I assume $0 < x_1 < x_2 < L$.  Because the points are chosen randomly I let $X_1 \sim U(0,L)$ and $X_2 | X_1 \sim U(x_1,L)$.  Under this assumption I know that   $$f_{X_1}(x_1) = \frac{1}{L}, \quad f_{X_2|X_1}(x_2)=\frac{1}{L-x_1}$$  and   $$f_{X_1,X_2}(x_1,x_2)=\frac{1}{L}\frac{1}{L-x_1}$$  I also want to use the triangle inequality which simplifies to  $$x_2 > \frac{L}{2} > x_2-x_1, \quad \frac{L}{2} > x_1$$  I know how to find these individual probabilities but I do not know how to combine them to get the answer. . .  May I have some assistance?


Picking a $\delta$ for a convenient $\varepsilon$?

I'm studying some proofs in a book from the library  and  unlike my own book, it doesn't prove by showing that a certain expression is striclty less than $\varepsilon$ (given an  appropiate $\delta$ and $\vert x-a\vert < \delta$, etc). Instead, it shows that it's less than some expression involving $\varepsilon$.   E.g. Given $\varepsilon > 0$, we can pick a $\delta > 0$ so $|f(x) - g(a)| <  \text{insert stuff} < k \cdot \varepsilon$ when $|x-a| < \delta$, and thus $f(x) - g(a) \to 0 $ when $x \rightarrow a$.  How does this make sense formally? (Intuitively, I am convinced.)  I don't have much experience with $\varepsilon$-$\delta$ -proofs, so I might be missing something obvious.


Drive in China with Chinese driver but foreign (own) car?

Based on my research it's difficult to get a Chinese driving license as tourist and expensive to have an obligated local guide. So I look for an alternative.  Is it possible to hire an (English speaking) Chinese driver, who drive you thru China in your own car? He deal with police and the Chinese traffic sign, but you stay flexible in your route and can bring your car thru China. (Not import, just in and out)  It's about a Chinese driver in a foreign car, and not about Chinese driving license or Chinese plates.


Phone number validation using JQuery & RegEx

i am bit week in regex.i am trying to validate phone no by regex & jquery and it works when i am giving phone number like +4401634687222 or 3301634687222. basically phone number may look like below and those no are valid.  +44 (0) 1634 687222 +44(0)1634687222 4401634687222 25805487   here is my code for validation.  var regEx = '1?\W*([2-9][0-8][0-9])\W*([2-9][0-9]{2})\W*([0-9]{4})(\se?x?t?(\d*))?'; var val = jQuery.trim($("input[id*='txtEnqphone']").val()) if (!val.match(regEx)) {     if ($('#Enquery_feed_loader').html() != '') {         $('#Enquery_feed_loader').fadeOut('slow', function () {             $('#Enquery_feed_loader').html('' + dialog_Msg.Invalid_Phone + '');         }).fadeIn('slow');     } else {         $('#Enquery_feed_loader').fadeOut('slow', function () {             $('#Enquery_feed_loader').html('' + dialog_Msg.Invalid_Phone + '');         }).fadeIn('slow');     }      $("input[id*='txtEnqphone']").focus()     flag = false;     return false; }   so just change my regex expression as a result i can enter the above phone number. thanks


Rigorous Probability/Statistics Book reference?

Im wondering if anyone could recommend a book (or a few books) about statistics/probability for someone at the advanced undergraduate level who has taken some real analysis (at the level of baby rudin) and some mathematical statistics and probability (only with calculus and intro to proofs as prerequisite). I would like to really start from the beginning and approach statistics from a rigorous (rudin-esque) sort of approach, a lot of the statistics I've encountered so far has been a lot of hand waving and lacking in rigorous proofs. Im hoping for a few books to really build a rigorous foundation and intuition, not just introduce me to the topics as quickly as possible.  Thanks for any help and suggestions. Please let me know if what I'm asking for is ridiculous.   Note: I haven't taken measure theory, but I would be happy to learn it.


What is a complex inner product space "really"?

To be clear on this, I know what is the definition of an inner product space and some properties and theorems about them. What I am asking for is an intuition for this definition in the complex case. In the real case, the intuition (or at least one of them) is  geometric: The inner product of two vectors is the length of the projection of the first to the second scaled by the norms of both vectors so that it is symmetric (modulo some details). In particular I (and everybody else) think of "inner product zero" as geometric orthogonality and of orthonormal bases as, well, orthonormal bases and so on. The question is, what should I think about when working with complex (or should I say hermitian?) inner product spaces? what is the "meaning" of the complex number associated to two vectors called their inner product?  I will be happy to hear all kinds of answers. For example, what physical phenomena does it model or in what mathematical situations does in "naturally" appear. Answers that stress the "nice structure" resulting are also welcome, yet I feel that by itself  it is a bit unsatisfying.


Prove that a given recursion sequence converges

I'm given:  $$\begin{align*} x_1&=\frac32\\\\ x_{n+1}&=\frac3{4-x_n} \end{align*}$$  How do I go about to formally prove the sequence converges and show it?  Thanks in advance.


I'm using Xampp and PHPStorm () to develop web site and I have a database in Xampp ().  I have inside a database with some phrases with é characters.  Using the browser I can see them in right way:    but when I try to see by my web site I cannot see the right view:    I have also used PHPStorm in order to have a view and it returns a right one:    Have you some ideas to solve it?


Calculate the determinant of the $2n \times 2n$ matrix with entries equal to zero on the main diagonal, $1$ below and $-1$ above

Calculate the determinant of the $2n \times 2n$ matrix with entries equal to zero on the main diagonal, equal to $1$ below and equal to $-1$ above. I'll denote this matrix $A_{2n}$.  So for example you have $A_{2} = \begin{bmatrix}         0 & -1  \\         1 & 0  \\               \end{bmatrix}  $ and $A_{4}= \begin{bmatrix}         0 & -1 & -1  &-1 \\         1 & 0  & -1  & -1\\         1 & 1  & 0   & -1 \\         1 & 1  & 1   & 0\\         \end{bmatrix} $  From trying it out by hand I think you have $\det(A_{2n})=1$ for all odd $n$ , or $=-1$ for all even $n$.  Can anyone come up with some way to prove this?  From doing these two examples my algorithm seems to be something like this:   Switch the first and second rows (multiplies det by $-1$) If the matrix is now upper triangular, calculate the  determinant by product of main diagonal. If not, make a new pivot and clear that column below. Swap the third and fourth rows (multiplies det by $-1$). Repeat from 2.


What title do you hold after you've defended but before you graduate?

Two friends successfully defended their dissertations yesterday, and many people have congratulated them, calling them Doctor so-and-so. I explained to my wife that they actually don't have that title until the graduation ceremony, that it's similar to a President-elect, who isn't called the President until they are sworn in. So, what title does a doctoral candidate take after they've defended but before they graduate?


Wash-sale Cost Basis Adjustment question

I wonder about the Adjustments to Cost Basis after a wash sale occur. Considering this  ( from marketwatch.com) where someone: On 1 Dec, 2018 used an amount of money in his account to buy 100 shares of XYZ Co., for $2000 (to make it simple , let's say 1 Feb, 2019 to turn all the transactions into the same year) On 1 Apr, 2019 he sells the shares for $1200, and incurred a loss of 800$. On 10 Apr, 2019 he bought back 100 shares for $1300, and had a wash sale. The 800$ loss gets added to the cost basis of this transaction( and the basis becomes $2100) Now, If on 13 Apr 2019, he sold 100 shares for $1400; I'm pretty sure that the realized Gain/Loss record of this transaction would show something like this: " XYZ Co. shares  100 , Proceeds $1400 , Cost basis  $2100(adjusted), Short-term Gain/Loss  -$700 ". So, even though the Gain/Loss shows a negative number, he still got an actual profit of $100 from this sale, right?


If X,Y and Z are independent, are X and YZ independent?

If yes:   I know that f(X) and g(Y) are independent if X and Y are independent and f and g are "measurable".*  If that is to be used, is g(Y) = YZ measurable?  If not, how else to approach this?   If no:   Counterexample please? ^-^  Possibly related:


Is encrypting multiple message with same key and iv secure for this case?

AES256, CBC  IV is sha512 of key.  Ek[random padding | message | random padding]  How much information would be leaked from the use of the same IV & key in this way, assuming the adversary has complete access to the system, design, iv, and all information, the AES Object itself, etc etc, except the key?


Clearing Recently used coordinate reference systems using QGIS?

After using some non usual SRC for demonstration purpose, I wish to clear my  "Recently used coordinate reference systems" list for the sake of praticity.  Is it possible?   I am using QGIS 2.10.1.


Revoking password-based login in favour of my Google account

Is there a way to delete my password-based login privilege if I have decided to use my Google account exclusively?


Why does resting potential not become continually more negative?

(Firstly, I know this is similar to other questions, but I have read those answers and they do not really cover this topic).  My understanding of resting potential: action potential is not being transmitted; by way of action potentials via Na+ and K+ pumps, for every 2K+ pumped in, 3Na+ is pumped out of the cell. This process is termed "resting potential" and the transmembrane pd roughly = -65mV.   If more Na+ are pumped out than K+ in, why does the resting potential difference remain at -65, why does it not continue to decrease (until an action potential is triggered)?


What makes Unity3D games look so similar?

For some reason, I'm quite good at guessing whether or not a game (both 2D and 3D) is made with Unity3D. But I can't really figure out why that is.  What makes Unity3D games look similar? Is it because people use the same textures? Or is it the texture filtering? The lighting? Something else? I'd really like to know for educational purposes.


Evolution of parasite into ideal parasite

An ideal parasite is a parasite which thrives within a host without harming it (according to my NCERT textbook).   Then, quite obviously, why hasn't that happened yet? I mean, natural selection can lead to such a species, which is beneficial to us and also, not at all detrimental to the parasite.


Here's my problem, I have a PDF document 583KB, and I want to make it under 500KB so I can upload it. What should I do?


What spell or ability lets me detect a creature's resistances/vulnerabilities?

I wonder if there is a spell that, when cast, gives me information about a certain creature, like its vulnerabilities and resistances. For instance, when fighting a Bronze Dragonborn, this spell would divine for me that they have Lightning Resistance.  Besides spells, is there a non-magical way to do so? Survival-check, Arcana, History, Insight? I have a hard time placing this under any one of those skills, if at all...  I'd be most interesetd in divination spells along the lines of Detect Magic / Detect Good and Evil, but if there is any other (magical) effect that would yield these results I'd like to know too.


What percent of a company are you buying when you purchase stock?

Lets say I buy a share of Apple stock. When you talk about stock, you say you are buying a small amount of the company. How small would 1 share of apple stock be at the moment you are answering the question?


Help me to fix this problem. The page should display - instead of â€“.  I already have <meta charset="utf-8" /> on my html <head>, I'm using visual studio code set to UTF-8, and the database. I'm using is mySQL, the version of my laravel is 5.4.  The â€“ comes from the database and i'm not allowed to alter it.


If $1-ba$ is a regular element, then can we claim that $1-ab$ is regular?

Let $R$ be a ring with unity and $a,b \in R$ and $1-ba$ is a regular element, then can we claim that $1-ab$ is regular? $a\in R$ is regular if there exists $b \in R$ such that $a=aba.$


In the movie AI: Artificial Intelligence, they say David's mom is dead because 2000 years have passed. Does David not understand that humans can't live that long?


Advantages of claiming a keep or a resource to guild

Is there any real advantage or bonus granted to your guild if someone claims a resource (farm, mine or lumbermill) or a keep in Cyrodiil?  I looked into the documentation, and on many sites, and didn't find any reference to actual bonuses or status for your guild, apart from seeing the name and location of the owned resource on the guild tab.


How to make checkbox in AbstractTableModel working

Need help i have a problem using AbstractTableModel , i want to add checkbox in cell JTable but i am getting this error :  SEVERE: null java.lang.NullPointerException     at com.java.pps.eveshop.jsonModel.ListTrxTableModel.getColumnClass(ListTrxTableModel.java:102)     at javax.swing.JTable.getColumnClass(JTable.java:2701)     at javax.swing.JTable.getCellRenderer(JTable.java:5686)   i know the error message is in here :  @SuppressWarnings({"unchecked", "rawtypes"})     @Override     public Class getColumnClass(int column) {         if (column == 11) {             return Boolean.class;         }         return (getValueAt(0, column).getClass());     }   but i dont know how to fix it, when i delete the code above i just getting false value as a string not a checkbox. Here is my full code AbstractTableModel class :  public class ListTrxTableModel extends AbstractTableModel {     private List<Boolean> rowList;     private Set<Integer> checked = new TreeSet<Integer>();     private final List<ListTrxModel> listTrx; //    private final String[] columns;     private final String[] columns = new String[]{"Nomor", "User name", "Request date", "Execute date", "MSISDN", "Voucher Code", "Nominal", "Sales_Price", "Status", "Mac address", "No truk", "Selected"};     public ListTrxTableModel(List<ListTrxModel> ListTrx) {         super();         listTrx = ListTrx;         rowList = new ArrayList<Boolean>(ListTrx.size());         for (int i = 0; i < ListTrx.size(); i++) {         rowList.add(Boolean.FALSE);         }        }     @Override     public int getColumnCount() {         return columns.length;     }      // Number of row of your table     public int getRowsCount() {         return listTrx.size();     }      @Override     public Object getValueAt(int row, int col) {         ListTrxModel trx = listTrx.get(row);         switch (col) {             case 0:                 return trx.getId();             case 1:                 return trx.getUser_name();             case 2:                 return trx.getRequest_date();             case 3:                 return trx.getExecute_date();             case 4:                 return trx.getMsisdn();             case 5:                 return trx.getKode_voucher();             case 6:                 return trx.getNominal();             case 7:                 return trx.getSales_price();             case 8:                 return trx.getStatus();             case 9:                 return trx.getMacaddress();             case 10:                 return trx.getNostruk();             case 11:                 return rowList.get(row).booleanValue();             default:                 return null;         } //To change body of generated methods, choose Tools | Templates.     }      @Override     public String getColumnName(int col) {         return columns[col];     }    @Override   public boolean isCellEditable(int row, int col) {      if (col < 1) {           return false;     }    else if( col == 11)   {       return true;   }   else {       return false;      }  }       @SuppressWarnings({"unchecked", "rawtypes"})     @Override     public Class getColumnClass(int column) {         if (column == 11) {             return Boolean.class;         }         return (getValueAt(0, column).getClass());     }      @Override     public int getRowCount() {         return listTrx.size(); //To change body of generated methods, choose Tools | Templates.     }    @Override         public void setValueAt(Object aValue, int row, int col) {             boolean b = (Boolean) aValue;             rowList.set(row, b);             if (b) {                 checked.add(row);             } else {                 checked.remove(row);             }             fireTableRowsUpdated(row, row);         }  }   please help me, thank you.


In various shell scripts I often see two approaches for getting information from databases supported by Name Service Switch libraries like /etc/group, /etc/hosts or /etc/services. One is getent utility and other is grep or some other text processing tool. For example:  root@fw-test:~# getent passwd root root:x:0:0:root:/root:/bin/bash root@fw-test:~#    root@fw-test:~# grep root /etc/passwd root:x:0:0:root:/root:/bin/bash root@fw-test:~#    ..or:  root@fw-test:~# getent hosts www.blah.com 189.113.174.199 www.blah.com root@fw-test:~#   root@fw-test:~# host www.blah.com www.blah.com has address 189.113.174.199 root@fw-test:~#    Which of those two approaches above should be used in scripts? I mean is one of the solutions more elegant or standard than the other?


Why don't we have a place for opinion based programming questions

Once I'm well into a software project I post specific programming questions. But with new projects it's sometime hard to get going because I don't have enough knowledge to pick the right tools or take the right approach. I usually have some ideas but like to get some input from the many stack exchange experts. However these type of questions often get voted down, closed as deemed opinion based as if opinions are a dirty word. I see why a question like 'which is best programming language' are not helpful but questions such as  are not the same and would benefit other programmers, and surely that's one of the main objectives of stack overflow.  Stack exchange is my first port of call because of user expertise and the great ease of use of the site, and the single login for all the stack exchange sites. I don't really don't want to use other sites.


Prove that V1 and V2 are subspaces and find a basis for them

I have the following problem: for $n>1$   $$V=M_n(\mathbb{K})$$  $$V_1 = \{ A\in V\mid A = A^{\top} \}$$ $$V_2 = \{A\in V\mid A= -A^{\top}\}$$  I need to show that $V_1$ and $V_2$ are subspaces for $V$ and to find a basis for them.


Why it is not recommend to use root login in linux

I am a developer using Linux fedora.I seen in lot of links that it is not a good idea to use root user,because someone can easily hack my password.Instead create a separate account for development purpose.But i am using my own fedora machine and myself only using.In this case is it recommend to use a separate account instead of "root".Need more clarification


Suggestions on a Ubuntu version suitable for this machine:

I have a 6/7 year old Dell Inspiron 1501 laptop which came with: 1GB DDR RAM, 120GB HDD, (Dual core?) AMD Turion Processor, Windows Vista Home Premium which now boots extremely slowly.  I'd prefer to replace it with a light/full version of Ubuntu which runs fairly well. Any suggestions on which version of Ubuntu to install on it, and any GUI options (Kubuntu/Lubuntu) which would make it perform faster.  I would like to mention that I do use Scientific Linux and Ubuntu 12.04 and 13.10 on a daily basis, but I have no knowledge of past versions and how well they would run on slower laptops.  Thank you in advance for any help and suggestions.


How can I convince someone that flying is safe?

My fiance is very scared of flying, and the constant media attention given to plane crashes doesn't help her phobia at all. In fact, the recent EgyptAir plane crash has made her attempt to swear off flying from her life altogether. Obviously it's hard to live without flying nowadays. It's just too convenient to abandon.  What can I do to encourage her and tell her that flying is safe and we shouldn't give up on it just because of the very occasional plane crash?


can someone please help me, im so new at this whole thing. and ive been looking all day for an app that is a "root shell" What is a root shell? Why can’t I find an all that has that?


What are the limitations of a typical kit lens as a general purpose lens?

I have a Canon EOS 550d with the 18-55mm IS kit lens. I have done  (portraits, nature, night shots etc), and find the image quality to be pretty good. In fact most of the reviews have also been positive (at least in terms of image quality):   Quote:     indeed Canon's main concern may   ultimately become whether users have   as much incentive to upgrade to more   expensive optics as they did before       So, what are the key limitations of this lens (or any other similar kit lens) that would compel one to upgrade to a more expensive general purpose zoom lens (apart from the wanting to upgrade the zoom range)?


$type_of_poker = "hold'em no limit"; $sql = "INSERT INTO hands (type_of_poker) VALUES ('$type_of_poker')";   Im trying to put hold'em no limit into a SQL database but it won't let me use ' i cant upload holdem no limit for a long list resones that have to do  with the rest of my code.


Windows 10 blue rectangle when dragging window

When I drag a window on my Windows 10 laptop I get this blue rectangle that appears that follows my mouse around and lets me snap the window to a portion of the screen.    I suspect that it may have to do with the fact that my laptop has a touchscreen and that it's supposed to make it easier to dock windows, but I don't really know.  Does anybody know how to get rid of this?


Prove : $p$(n│even number of ODD parts)=$p$(n│distinct parts ,number of ODD parts is even )

I'm trying to prove the following Integer Partition claim :   $p$(n│even number of ODD parts) = $p$(n│distinct parts ,number of ODD parts is even) .  So I tried to prove a stronger claim :   $p$(n│number of odd parts) = $p$(n│number of distinct parts) :  Using generating functions :   DISTINCT PARTS =  $$(1+x)\cdot(1+x^2 )\cdot(1+x^3 )\cdot(1+x^4 )\cdot\cdot\cdot\cdot$$  = $$\frac {1-x^2} {1-x} \cdot \frac {1-x^4} {1-x^2} \cdot \frac {1-x^6} {1-x^3} \cdot \frac {1-x^8} {1-x^4}\cdot\cdot\cdot\cdot$$  $$ \frac {1} {1-x} \cdot \frac {1} {1-x^3} \cdot \frac {1} {1-x^5} \cdot \frac {1} {1-x^7} \cdot\cdot\cdot\cdot $$  = ODD PARTS  But I'm not sure regarding the proof , does it really prove that even number of odd parts equals distinct parts ,where number of ODD parts is even ?   Thanks


If $f$ is holder continuous for $\alpha >1$ then $f$ is constant.

I want to show that if $f:\mathbb R\longrightarrow \mathbb R$ is $\alpha -$Holder continuous for $\alpha >1$, then $f$ is constant.   This is my proof:  Let $\alpha =1+\varepsilon$. Then, there is a $C$ s.t. $$|f(x)-f(y)|\leq C|x-y||x-y|^\varepsilon\implies \left|\frac{f(x)-f(y)}{x-y}\right|\leq C|x-y|^\varepsilon.$$  I want to says that it implies that $$|f'(y)|=\lim_{x\to y}\left|\frac{f(x)-f(y)}{x-y}\right|=0,$$ but since $f$ is not supposed differentiable, I'm not sure if I can.


What do i do if the bicycle rack on the bus is full?

I'm planning on riding the bus to my friends house tomorrow (so i would like answers asap please) and i'm planning on taking my bike so we can ride together but im worried the bike rack on the bus is gonna be full and i have no idea how to handle that situation so if anyone could tell me what to do asap that would be fantastic.


Why force $F$ is equal to $ma$ and not $mv$?

I was confused with this equation like why force is equal to $ma$ and not $mv$? Then I read the same question here on stack exchange, it's answers almost made sense but I still can't visualise the situation where a thing is moving at a constant velocity, would it then have no force? But if I think this scenario in my head, it would definitely have force when it hit something. So I wonder if I am mis-associating the terms in the equation?


I have to encrypt/decrypt some sensitive information in a Xml file? Yes I can do that by writing my own custom algorithms. I am wondering if there is already a built in way in .NET to do that and also what points I always need to take care..


If we can predict the quantum leap, won't that render quantum computers useless?

Recent news from Yale... We can predict the quantum leap before the particle collapses its superposition. We can even change it to whichever position we like in real time. In layman terms, as I understand with my limited knowledge, Schrodinger's cat can be SAVED.  But... Also to my limited knowledge, the core of how a quantum computer works is because of its superposition feature and its uncertainty.  Then put these two paragraphs together... If the superposition is now old news, so would quantum computers. Right? What am I missing here?


Periodic loss of network connectivity on Ubuntu 16.04

On my main Ubuntu 16.04 machine I sometimes lose connectivity. When I try to ping the Google DNS I get the response: "connect: Network is unreachable".  I can fix it instantly by resetting the network interface, Turning wired network off and then on using a default GUI button. Does anyone know what the problem is?  Here's the ifconfig output:  enp2s0    Link encap:Ethernet  HWaddr c8:9c:dc:d9:76:59         inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0       inet6 addr: fe80::c46:e5e8:d89f:b5c6/64 Scope:Link       inet6 addr: fdee:8069:28f3:0:5a3d:7482:bbd4:6520/64 Scope:Global       inet6 addr: fdee:8069:28f3:0:685d:475b:a11a:b501/64 Scope:Global       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1       RX packets:344379 errors:0 dropped:0 overruns:0 frame:0       TX packets:190782 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1000        RX bytes:404790948 (404.7 MB)  TX bytes:14956805 (14.9 MB)  lo        Link encap:Local Loopback         inet addr:127.0.0.1  Mask:255.0.0.0       inet6 addr: ::1/128 Scope:Host       UP LOOPBACK RUNNING  MTU:65536  Metric:1       RX packets:24411 errors:0 dropped:0 overruns:0 frame:0       TX packets:24411 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1        RX bytes:76904248 (76.9 MB)  TX bytes:76904248 (76.9 MB)   route output:  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface default         myhome.mynet    0.0.0.0         UG    100    0        0 enp2s0 10.0.0.0        *               255.255.255.0   U     100    0        0 enp2s0 link-local      *               255.255.0.0     U     1000   0        0 enp2s0   sudo lshw -C network    *-network                   description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:02:00.0    logical name: enp2s0    version: 06    serial: c8:9c:dc:d9:76:59    size: 100Mbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet         physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168e-2.fw ip=10.0.0.1 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s    resources: irq:26 ioport:e000(size=256) memory:fe400000-fe400fff memory:d0000000-d0003fff     If there are any other useful commands/files I should post let me know.


How to update Wine to the latest version?

I just formatted my laptop and got rid of Windows 7. Yay ;-)  Either way, Wine is version 1.3.28 here, and I need it to update (there are some bugfixes) for my game so I need a more recent version. This is the version I got from the Ubuntu software manager. How do I get a more recent version or Wine version 1.4?  I've already added the repo into my repository, but still no updates.  Thanks in advance.


Do unconcious people who fall in water die?

I have successfully performed a non-lethal take down, but the body fell into the water.  If I am going for one of the no kills achievements, do I need to worry about them drowning?


Is there a reason I would not add /usr/local/sbin, /usr/sbin, /sbin to my path on Debian?

Compare Debian (left) and Ubuntu (right):  $ ifconfig                                 $ ifconfig bash: ifconfig: command not found          eth0     Link encap ... $ which ifconfig                           $ which ifconfig $                                          /sbin/ifconfig   Then as superuser:  # ifconfig                                 # ifconfig eth0      Link encap ...                   eth0     Link encap ... # which ifconfig                           # which ifconfig /sbin/ifconfig                             /sbin/ifconfig   Furthermore:  # ls -l /sbin/ifconfig                     # ls -l /sbin/ifconfig -rwxr-xr-x 1 root root 68360 ...           -rwxr-xr-x 1 root root 68040 ...   It seems to me the only reason I cannot run ifconfig without superpowers on Debian is that it's not in my path. When I use /sbin/ifconfig it does work.   Is there any reason I should not add /usr/local/sbin:/usr/sbin:/sbin to my path on Debian? This is a personal computer, I am the only human user.    Versions used (uname -a): Ubuntu:   Linux ubuntu 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   Debian:  Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux


Calculation of $\prod_{k=1}^\infty \left( 1 + \frac{a}{k^2} \right)$?

I am curious how to calculate the infinite product  $$ \prod_{k=1}^\infty \left( 1 + \frac{a}{k^2} \right). $$  WolframAlpha  that it is equal to approximately  $$ \prod_{k=1}^\infty \left( 1 + \frac{a}{k^2} \right) \approx \frac{0.31831 \sinh (3.14159 \sqrt{a})}{\sqrt{a}} $$  which I suspect might be given by  $$ \frac{\sinh (\pi \sqrt{a})}{\pi \sqrt{a}}. $$  This in turn suggests that  $$ \sinh a = a \prod_{k=1}^\infty \left( 1 + \frac{a^2}{\pi^2 k^2} \right), $$  which is confirmed by WolframAlpha.  However, I don't know how this is derived.


I think I am a bit confused about the definition of (complex) differentiability. Yes, I know that's stupid, but I am hoping that someone could clear it up for me. I know that the definition of (complex) differentiability is when $\lim\limits_{h\to 0}{f(z+h)-f(z)\over h}$ exists.  So, is $|z|^2$ considered differentiable? What I think is it is only differentiable at $z=0$ since at any other point if we take $f(z+h)-f(z)\over h$  as $h\to 0$ along a contour line of $|z|^2$ then the limit is $0$ whereas if we take a path say perpendicular to the contour lines, the "gradient" wouldn't be $0$, right? But then if this is true then all complex functions that are "not flat" would not be differentiable, so I must be wrong. Could someone kindly explain to me what is going on? Sorry for my stupidity!


Why does my while loop end after I type in an score once when I want to type more before it ends

The issue is that after I enter 1 exam code it automatically exits the loop. I want to enter more exam scores until i type "exit". But whenever i type the first exam code it goes straight to the system.out.printlns at the bottom. Also, if i have made any other mistakes please let me know. Please help Here is my code: import java.util.Scanner;     public class ExamScoresCalculator{           public static void main(String[] args){              Scanner scan = new Scanner(System.in); // an instance of the scanner class              boolean scoreError = true;       double examScoreLow;       double examScoreHigh;       double examScoreTotal = 0;        int numOfEntries = 0;       int entryScore;              System.out.println( "Enter the lowest possible exam score" ); // user input instructions       examScoreLow = scan.nextInt();              System.out.println( "Enter the highest possible exam score" ); // user input instructions       examScoreHigh = scan.nextInt();                      while(scoreError == true){                    System.out.println("Enter an exam score or type exit"); // asking user to input an exam score          entryScore = scan.nextInt();                     String entryNums = "";          entryNums = Integer.toString(entryScore);                              if(entryNums==( "EXIT") || entryNums==( "Exit") || entryNums==( "exit" )){          scoreError = false;       }else{            entryScore = Integer.parseInt(entryNums); //converting user input into a number                      if(entryScore < examScoreHigh && entryScore > examScoreLow){ //checking in entry is in range             numOfEntries++; // updating number of exam score entries             examScoreTotal = entryScore;             ++examScoreTotal;                if (entryScore < examScoreLow){ // checking if entry is less than highest exam score                 examScoreLow = scan.nextInt();             }             if (entryScore > examScoreLow){               }           }else{             System.out.println( "Not a valid exam score, please try again"); // asking user to input an                                                                                exam score           scan.nextInt();                   }               }//closing first else        }//closing while loop                System.out.println("The total number of exam scores is: " + numOfEntries);        System.out.println("The lowest exam score is: " + examScoreLow);        System.out.println("The highest exam score is : " + examScoreHigh);        System.out.println("The average exam score is : " + examScoreTotal / numOfEntries);                }//closing main method  }//closing classimport java.util.Scanner;


Why Bohr atom model is still being tought in high school?

Bohr atom model is still the textbook content of today's high school physics.  We all know that the Bohr model is only suitable for single electron hydrogen atom, not suitable for other atoms. For example it's not suitable for Helium atom with two electrons.  The Bohr model is obviously wrong. The atomic system based on this model has no mechanical stability, atoms can not exist this way. Hydrogen atom is a coincidental exception, because it has only one electron.  According to Coulomb's law, the electrical force between proton and electron provides centripetal force, which enables the electron to run in orbit. This is a model that physicists draw from the analogy of the solar system's planetary models. One electron Hydrogen atom is OK based on this scenario.  For helium atom with two electrons, this model can not provide mechanical stability, that is, two electrons can not exist stably around the nucleus.  The reason is simple: because there is also a great force between the two electrons. The magnitude of the repelling force is in the same level with the centripetal force, this must make the helium atom unstable.  Our solar system is stable because these planets are far enough apart, compared with sun's attraction,  the attractive force between planets are almost ignored. When multiple electrons move around the nuclear, the repulsive forces  between them are too strong and cannot be ignored, which will definitely destabilize the atom. Atoms are not the same as solar system.  For large atoms, it is easier to understand that the strong interaction between electrons makes atoms mechanically unstable. Outside the nucleus, a group of electrons with huge repulsive force are circling. How can we make the atom exist stably without disintegration?  Another error is that the Bohr model can't make up molecules (for example, two hydrogen atoms make up hydrogen molecule). No electron can circle two nuclei at close range due to mechanical stability problem. This is similar to the reasons why binary systems cannot have close common planets.   All the assumptions based on the Bohr model that electrons rotate around two or more nuclei to form chemical bonds are impossible. Electron is not a man driven space ship that can go anywhere the driver want.  Bohr (not only him, but many physicists at that time) was misled by the planetary model and came up with an incorrect model that only applies to hydrogen atom.  The atom model  suitable only for a single electron atom must not be the correct atomic structure.    In terms of atom stability, Bohr's circling model is correct only for hydrogen.  Considering other ways, it's not right, it is not suitable for hydrogen atom either.  The solar system will not disintegrate and reorganize. Once formed, it will remain unchanged until sun is too hot or to burn out.  Atoms are disintegrated and recombined at any time. The ionization of hydrogen atoms does so. Ionization means that atom break up into electron and proton, whereas proton and electron close together can merge into hydrogen atom.  Bohr's circling model can not complete this dismantle and rebuild process. The recombined electrons will crash onto the proton due to Coulomb force.


How to compare to floating point number in a shell script

I want to compare two floating point numbers in a shell script. The following code is not working:  #!/bin/bash    min=12.45 val=10.35     if (( $val < $min )) ; then       min=$val fi echo $min


How to redirect all requests to wp-login.php?

I created some custom login/registration template pages and now I want that every request to wp-login.php to be redirected to a custom url. Now I have something like this:  add_action('init','possibly_redirect');  function possibly_redirect(){ global $pagenow; if( '/wp-login.php' == $pagenow ) { wp_redirect('/login'); exit(); } }   but it doesn't work properly because when I click a logout link (in a meta widget) it will redirect me to the /login link and not doing logout. Do you have other method to do this in a safe or a better way ? Thank you.


Prove that over an infinite field, a finite set of points in $\mathbb{ A}^n$ can be obtained as vanishing set of n polynomials

While reading Ernst Kunz's commutative algebra book, I came across this problem:     Let $K$  be an infinite field, and $V \in\mathbb{ A}^n (K)$ (the affine n-space) be a finite set of points. Show that the ideal of $V$, i.e. {$f(x_1,\dots,x_n) : f(p) = 0 \forall p\in V$} is generated by exactly n polynomials.   For $|V| = 1$ this is obvious, since the ideal $(x_1 - a_1, ..., x_n - a_n)$ works. The book says to use interpolation as a hint, but I have no clue how to use it (to be honest, being a pure math student I haven't handled interpolation in my life). Thanks in advance.


I want to ready the disengage action as a trigger if a creature appears near me. Is that possible?   My DM told me I could ready any other action like dodge, etc. as a trigger except for disengage. I've read the player's handbook but I don't see any rule that disengage can not be readied?


I can't find the dependencies for Screem

I have been trying to install Screem html editor and there are some dependencies that I couldn't find.  No package 'libgtkhtml-2.0' found No package 'libgnomeprint-2.2' found No package 'libgnomeprintui-2.2' found No package 'gtksourceview-1.0' found No package 'libgnome-menu' found   I have been searching everywhere for them but couldn't find them in the apt-cache or online. Can anybody help me get them installed?


How do I mock a service when using BroswerTestBase?

I am trying to use BrowserTestBase to write a functional test for a Form. The form populates some form elements with data retrieved from an external site. The client for this external site is injected into the form as a Drupal 8 service. The client uses Guzzle, and I'm building the mock client using code similar to the following one.  $myClient = new MyClient(Drupal::configFactory(), [   'handler' => HandlerStack::create(     new MockHandler([       new Response(200, ['X-Foo' => 'Bar'], 'Hello, World')     ])   ),   'base_uri' => 'http://example.com/api/', ]);   I've tried doing this in the test class to assign my mock client to the service.  $this->container->set('my.service', $mockClient);   I've tried placing this assignment in setUp() as well as the testMyForm() method itself, but the container passed to the form's create() method doesn't contain $mockClient.  Update:  After digging into the code I discovered that parameters and services may be initialized in the test-site context by adding them inside testing.services.yml and placing that in the default site folder. In my test I used:  services:   browser_test.handler_stack:     class: GuzzleHttp\HandlerStack     factory: GuzzleHttp\HandlerStack::create     arguments:       - '@browser_test.mock_handler'   browser_test.mock_handler:     class: GuzzleHttp\Handler\MockHandler   my.service:     class: Drupal\mymodule\Client\MyClient     arguments:       - '@config.factory'       -         base_uri: 'http://localhost/test/'         handler: '@browser_test.handler_stack'   This overrode the client (which solves part of the problem), however I'm still unable to inject mock responses into MockHandler from the test class. I tried:  /** @var MockHandler $handlerStack */ $handler = $this->container->get('browser_test.mock_handler'); $handler->append(new Response(200, ['X-Foo' => 'Bar'], 'Hello, World'));  $this->drupalLogin($this->adminUser); $this->drupalGet('path/to/my_form'); $this->assertSession()->statusCodeEquals(200);   But MockHandler is throwing an exception because Mock queue is empty.


I have a directory in my Cent OS machine where the users would drop in in all their files. I want to find out which user is dropping the large files in the folder.   Day by day this increases & would want to know the large files. Any command for that as I do not wish to check them manually.


I am trying to enumerate a range of integers using a variable but having some trouble.  When I type  echo {1..5}   I get  1 2 3 4 5   However, when I type a variable, I am unable to get the enumeration.  For example  $ num=5 $ echo {1..$num} {1..5}   I am stumped as to why the result is not the same.  I have tried using quotes and that has not helped either.  Can someone help or explain?


I'm working on creating a looping rotation and the tutorial I was following had me use the graph editor at one point. I was really confused by the way that new windows are opened so in my attempts to close it i ended up creating several more. I also elected to hide the header because I thought they might be closed as a result. Long story short, I accidently closed the window I was working on and am left with a graph editor window with no heder and no way to switch back to 3d viewport mode. I can still view my models through the other windows like sculpt and model but I can't work on the animation. Is there anything I can do???


If a product is normal, are all of its partial products also normal?

It seems like this should be true, but I can't find the right argument.  Thanks.  Edit: How about   1) Take two disjoint closed sets in a partial product.  2) Extend them trivially to the entire product.  3) Separate them with disjoint open sets in the big product.  4) Restrict these open sets to the subproduct.  ???


Simulating Multinomial Logit Data with R

I'm looking to generate fake data to fit a multinomial logit in R? Any code/suggestions on material to look at would be very much appreciated...  Thanks.


Looking for better approaches to evaluate $\int \dfrac{x^2+x}{(e^x+x+1)^2}dx$

$$\int \dfrac{x^2+x}{(e^x+x+1)^2}dx$$  My multiple attempts are as follows:-  Attempt $1$:  Let's differentiate $\dfrac{f(x)}{e^x+x+1}$  $$\dfrac{d}{dx}\left(\dfrac{f(x)}{e^x+x+1}\right)=\left(\dfrac{f'(x)(e^x+x+1)-f(x)(e^x+1)}{(e^x+x+1)^2}\right)$$   If we can choose $f(x)$ such that $f'(x)(e^x+x+1)-f(x)(e^x+1)$ equals to $x^2+x$, then our job will be done.  But I was not finding such $f(x)$.  Attempt $2$:  $$N_r=A(e^x+x+1)^2+2B(e^x+x+1)(e^x+1)$$ $$N_r=A(e^{2x}+x^2+1+2x+2xe^x+2e^x)+2B(e^{2x}+e^x+xe^x+x+e^x+1)$$ $$x^2+x=(A+2B)e^{2x}+(2A+4B)e^x+(2A+2B)xe^x+Ax^2+(2A+2B)x+A+2B$$  $$A+2B=0$$ $$A=1$$ $$2A+2B=0$$ $$2A+2B=1$$  So we don't have any solution for $A$ and $B$  Attempt $3$:  $$\int \dfrac{x^2+x+xe^x}{(e^x+x+1)^2}-\dfrac{xe^x}{(e^x+x+1)^2}dx$$ $$\int \left(\dfrac{(e^x+x+1)^2}{(e^x+x+1)^2}-\dfrac{1}{2}\cdot\dfrac{2(e^x+x+1)(e^x+1)}{(e^x+x+1)^2}\right)dx-\int \dfrac{xe^x}{(e^x+x+1)^2}dx$$  $$x-\ln(e^x+x+1)-\int \dfrac{xe^x}{(e^x+x+1)^2}dx$$  $$x-\ln(e^x+x+1)-\int \dfrac{(x+e^x+1-e^x-1)e^x}{(e^x+x+1)^2}dx$$  $$x-\ln(e^x+x+1)-\int \left(\dfrac{1}{e^x+x+1}-\dfrac{e^x+1}{(e^x+x+1)^2}\right)e^xdx$$  So we have the standard integral form $\int e^x\left(f(x)+f'(x)\right)=e^xf(x)+C$  $$x-\ln(e^x+x+1)-\dfrac{e^x}{e^x+x+1}+C$$  But it took me a lot of time to arrive at this. Is there any simple thing which I am missing here? Feel free to suggest your alternatives.


Time taken for object in space to fall to earth

The Problem For a small mass a distance $R_i$ away from the center of the Earth, how long would it take for the object to fall to the surface of the Earth, assuming that the only force acting upon the object is the Earth's gravitational force?  Relevant Information The following discussion seems to have solved exactly the same problem:   However, upon working out the mathematics, I'm not exactly sure how to evaluate the constant of integration.   A Partial Solution $$ F=\frac {-GMm}{s^2} $$ $$ a=\frac {-GM}{s^2} $$ $$ \frac {dv}{dt} = \frac {-GM}{s^2} $$ Multiplying by $v$ and then integrating by $dt$ on both sides, we have $$\frac {1}{2} v^2=\frac {GM}{s} +c_1$$ where $c_1$ is a constant of integration. Substituting initial conditions of $v=0, s=R$, we have $$\frac {1}{2} v^2=GM(\frac {1}{s}-\frac{1}{R})$$  At this point of time, when I use Wolfram Alpha, I get  $$c_2+\sqrt{\frac{2}{R}}t=\frac{\sqrt{s}(s-R)+R\sqrt{R-s}\times{\tan^{-1}(\sqrt{\frac{s}{R-s}})}}{\sqrt{GM(R-s)}}$$  where $c_2$ is a constant of integration. Substituting initial conditions of s=R, t=0, we find that the term $$\tan^{-1}(\sqrt{\frac{s}{R-s}})$$ is undefined. At this point, I'm stuck. Any ideas on where I've made the mistake here?  (For those interested, this question was inspired by the Greek myth which states that a bronze hammer dropped from heaven would take 9 days to hit the Earth and would reach on the tenth).


I am very new to Java and I am stuck on this, I am using the formula:  min + (int)(Math.random()*(max-min+1))   and I have to write statements that assign random integers to the variable x in the following ranges   1 < x <= 8 1 being min and 8 being max  Am I correct that it would be 1 + (int)(Math.random()*(8-1+1))? -5 < x <= 3 3 being min and -5 being max  and this would be 3 + (int)(Math.radom()*(-5-3+1))?   Any help would be greatly appreciated.


How to clean an anti-glare or matte display?

I have a Thinkpad T530 laptop. I tried to clean it, but it has streaks, and a solution I was looking at on Newegg said it was not for displays with an anti-glare coating.  I'd like to know, with respect to anti-glare/matte displays in particular:   What I should use to clean the screen, and How I should use it.


How come my mirror modifier messes up when I apply subdivision?

Ok, when I applied my subsurf modifier my mirror modifier messes up... how can I fix this?  Here is the mesh before I applied the subsurf modifier.


Pure Math PhD Application with an accidental F (But with some rescue action)

There are certain concerns that say this might be duplicate of this question: . However, I believe that is not the case. That question talks about a low overall GPA. I do not have a low overall GPA but just an accidental F. I think that is different.  My situation is a little bit special so I am sorry if I did not write a perfect title to summarize the whole story. I will briefly tell the case and my situations and then ask the questions in detail.  I am an international student in pure math at a US college with 10-20 ranking and I plan to be a mathematician from the very beginning since I was young. However, I got into an accident in the first half of my 3rd year. I missed the deadline of the final of my PDE class and that final counted up for 40% of the grade, making me fail the course. This made me so depressed, since my school will show both grades even if you retake the course. I can retake the course but some of the grad schools that I hope to get into have an application deadline before my fall semester grade come out, which is really troublesome.  Also here is some of my overall performance in college  1.After fail, I still have an overall GPA about 3.8  2.I had top performance on other my courses and even I can do better than grad students in grad level course. For example, I just got a solid A+ in commutative algebra and functional analysis for the last semester.  3.I attended a wide range of math courses in graduate level like algebraic number theory, knot theory and geometric topologies with A grade.  4.I will retake PDE in fall 2016 and I am very likely to get a rec letter from the professors of that course. Also, the professor of PDE course in fall 2015 agrees to write a supportive letter for me confirming my situation.  5.I got independent study experience in pure math. (You cannot do original research in pure math as undergrad, usually)I did a very successful reading and presenting course in hyperbolic manifold (with 6 A+ credits) and I will do another courses like this in OPUC in fall 2016. However, that is all I can get. I was rejected by all REU I applied since unfornately all REU I was interested in did not accept non native students.  6.Because of 5, my other two rec letters will be from a very recognized professor in my department and from my department chair.  7.I have a high GRE general/subject test score.  Now is my question:   Based on my overall performance and the rescue actions I took, How badly this F will affect my PhD application? If I want to apply for a school whose deadline of application is earlier than the time when my fall grades come out, how can I show that I have come back and fixed my mistakes?   I apologize in advance for grammar mistakes and awkward expressions if there are any. I really love mathematics and I really want to get into top tier school. Thanks so much.


Does Time Machine backup programs like Photoshop and iWork?

I want to upgrade my OS X to Yosemite from Lion and also upgrade my HDD to a SSD but im worried about loosing my programs since I don't have the installers or serial keys. Specifically Adobe cs5 master collection and iWork.


"sudo apt-get install nasm" produces the error message shown in the title, yet it is shown the devel section of xenial (16.04). Any ideas would be greatly appreciated.  (For what it's worth, "sudo apt-get install python-dev" works as you would expect it to.)


Adding lambda functions to a symbol table of a class

I am trying to add a lambda function to the symbol table of a class:  class B:     def __init__(self):         func = lambda self, x: x*x  # <-- Adding 'self' produces error         self.__dict__['test1'] = func         print(self.test1(2))         print(self.test2(2))      def test2(self, b):         return b*b*b  b = B()   but this produces an error (running the script with python t.py):  Traceback (most recent call last):   File "./t.py", line 14, in <module>     b = B()   File "./t.py", line 8, in __init__     print(self.test1(2)) TypeError: <lambda>() missing 1 required positional argument: 'x'   However, if I remove self as an argument to the Lambda function, it works fine.   Why isn't self required as an argument for the Lambda function here?


Getting Unwanted Transitional Values from Push Button Switch

When I toggle a push button switch on and off, instead of getting a pure on/off continuity levels I sometimes get "transitional" values. I need it to be purely on/off with nothing in between. What components do I need to add to the switch to make that happen?  There is +5v being applied at what is labeled "TIP".  Here is am drawing of the original circuit I am trying to replace:  Hopefully that helps explain what I am trying to do.


I have two function which returns two dictionaries. In third function I've tried merge these dictionaries using update but I've got Noneresult while printing. Could anyone explain my mistake?  def first():     dict1 = {         one : [1, 2, 3]     }     return dict1  def second():     dict2 = {         two : [3, 4, 5]     }     return dict2  def third():     return first().update(second)   print(third()) >>> None   I also tried this way:  def third():     a = first().copy()     return a.update(second())   By the way, this way doesn't work in Python 3.4:  def third():     return dict(a.items() + b.items())


Examples/Use-cases of design in which parent class accesses its child's static field

EDIT : The  DOES NOT answer this question as it is about HOW it is accessible. But my question is when should such a design be used or any examples of such a design. NOTE : Anyone looking for an answer to this question can scroll down in the comment section to see Thomas's comments in the end related to java.lang.CharacterData.  Some of the questions with a similar title actually discuss the usage of static variables with the same name in child and parent. example:  But my question is regarding the purpose of accessing child's static field in parent class. class Child extends Parent {     static String someString = "test"; }  class Parent {     void someMethod() {         System.out.println(Child.someString);     } }  Isn't this a bad design? Ideally, if someString is required in Parent, then it should be a field in Parent instead of Child. Are there any use-cases/examples when this approach could be used?


I am getting a null error after declaring object and assign an index to an array

This is a code to implement the hashing without using the java hash function. I got an error java.lang.NullPointerException though  A class to create a contact with phone and name:  public class Contact {   String name;   int phone; }  public class Hash {   public static void main(String[] args) {      Contact[] table = new Contact[1009];      int tableSize = 1009;      int out = calcHash("Ahmed", tableSize);      table[out].name = "Ahmed";    //This line has an error     table[out].phone = 23445677;  //This line has an error      System.out.println(out);    }   A method to generate a hash value for the name:    public static int calcHash(String key, int tableSize) {       int i, l = key.length();     int hash = 0;     for (i = 0; i < l; i++) {        hash += Character.getNumericValue(key.charAt(i));       hash += hash << 10;       hash ^= hash >> 6;     }     hash += hash << 3;     hash ^= hash >> 11;     hash += hash << 15;     if (hash > 0) return hash % tableSize;     else return -hash % tableSize;   } }   These lines in the Hash class are throwing exceptions:  table[out].name = "Ahmed";    //This line has an error table[out].phone = 23445677;  //This line has an error


Capacitor for 5V to 3.3V on AMS1117 voltage regulator?

I have ESP32 with several modules attached which require 1A 3.3V. I am planning to use 5V 3A power supply which then step down to 3.3V with AMS1117.  How large capacitor need to stabilize AMS1117 input? Is there any capacitor need to stabilize the output?  Because my electronic engineering knowledge is very limited, I am planning to use 4700uf on AMS1117 input and 470uf on the output. Maybe "bigger is better". Is this correct?   Thanks.


How to package for multiple Ubuntu versions with different package dependencies in a single PPA from launchpad?

I have an existing PPA for a Qt-based application that dates back to xenial that I recently updated to support bionic.  I did this by just checking in all the changes required for bionic (in particular a switch from a third-party Qt PPA to the distro-provided Qt since that the version in the distro is sufficient in bionic) as an update to the launchpad project using bzr, thus abandoning the older version.   At risk of stating the obvious, to disambiguate the question, my package depends on (and lists as dependencies) the packages of the Qt components that the software uses. In practice this is so that required libraries are installed automatically when the user installs the package from my PPA. In principle I could create a package that did not explicitly depend on anything and the user could manually install the required libraries, but that would defeat the purpose of using a PPA. The third party Qt PPA used in the xenial version of my package uses different package names and versions than the distro-provided Qt from bionic, so the dependency lists must be different; the package cannot simply be copied to support both distros, and redeploying the package to the other distro with the same control file contents will not work.  In principle packages for different Ubuntu versions could need to be maintained in parallel; what is the right way to do that from the packaging, launchpad, and PPA infrastructure? The  field in debian/changelog allows multiple values, but I don't see a way vary the control settings for each.


How to show that a root of the equation $x (x+1)(x+2) ....... (x+2009) = c $ can have multiplicity at most 2?

How to show that a root of the equation $$x (x+1)(x+2) ....... (x+2009) = c $$ can have multiplicity at most 2 , and to find the value of $ c $   for which this is possible.  I proceeded by using the derivative method, but the number of terms involved is huge.I have been trying to find some common property for all these terms, but I've come up with nothing so far.


If you divide $10$ by $3$, you get $3.\overline{3}$ but $3.\overline{3}\times{3}=9.\overline{9}$ Does this make $9.\overline{9}=10$?


Let $H\lhd G$ and $K\lhd G$ s.t. $H\cap K=\{1\}$. Show that $$HK\cong H\times K.$$  Attempts  Using second isomorphism theorem, we have that $HK/K\cong H$ and $HK/H\cong K$, so I need to prove that $$HK\cong HK/K\times HK/H.$$  To simplify notatino let $W=HK$. I consider the group morphism $$W\longrightarrow W/H\times W/K$$ defined by $$w\longmapsto (wH,wK).$$ The injectivity is clear, but I have problem to show surjectivity. Could someone help ?


Hungerford section 2.1: Find all the solutions of $6x \equiv 9 \pmod{15} $

I am new to working with modular equations and am trying to find all the solutions to the equation $ 6x \equiv 9\pmod {15} $, here's what I have so far: $6x \equiv 9 \pmod{15}$ means $6x-9=15m$ for some $m\in \Bbb Z$. Therefore $$6x=15m+9$$ $$2x=5m+3,$$ which shows that $2 \mid (5m+3)$. Since $2 \mid (5m+3)$, we know that $2 \nmid 5m$ (otherwise $2$ would divide $3$, but $2 \nmid 3$). Therefore $2 \nmid m$ (otherwise $2$ would divide $5m$, but $2 \nmid 5m$). Therefore $m=2k+1$ for $k \in \Bbb Z$. Thus we have $$2x=5m+3$$ $$2x=5(2k+1)+3$$ $$2x=10k+5+3$$ $$2x=10k+8$$ and therefore, $$x=5k+4,$$ so that $x-4=5k$, and hence $x \equiv 4\pmod 5$. Therefore $x \in [4]$ (in modulo 5 arithmetic). I know that $ 5 \mid 15$ and that the congruence classes should be $x \in[4], x\in [9],$ and $x \in [14]$ (modulo 15). The problem is I'm not sure how to get back to mod 15 from mod 5/ what is the process of justification.


Exception NullPointerException undefined - Groovy

I am new to Groovy and was trying to write a statement to return a row of data from the table F03B13. However, I am encountering an error. I think the error comes from initializing Sql sql but I am not really sure how to solve it.  { "message": { "BatchGroovy": { "exception": "NullPointerException", "timeStamp": "2021-03-02T12:03:17.634+0800" } }, "exception": "Exception", "timeStamp": "2021-03-02T12:03:17.635+0800", "userDefinedErrorText": "", "status": "ERROR", "exceptionId": "7b706300-cafa-4316-b818-af0619d205fe" }  import groovy.transform.CompileStatic; import com.oracle.e1.common.OrchestrationAttributes; import java.text.SimpleDateFormat; import java.sql.*; import groovy.sql.Sql; import groovy.json.JsonOutput;  @ CompileStatic HashMap < String, Object > main(OrchestrationAttributes orchAttr, HashMap inputMap) {  orchAttr.writeWarn("START DB Groovy");  Sql sql; String VAPOST = "D"; String VACO = "00013"; String VAGLBA = "21237218";  def rows = sql.rows("SELECT RYICU FROM CRPDTA.F03B13 where RYPOST = '${VAPOST}'AND RYCO = '${VACO}' AND RYGLBA = '${VAGLBA}' ");  HashMap <String,Object> returnMap = new HashMap <String,Object> ();  try { def jsonArray = JsonOutput.toJson(rows); returnMap.put("rows", jsonArray); } catch (Exception e) { orchAttr.writeWarn("try to put rows in json", e); } orchAttr.writeWarn("END DB Groovy"); return returnMap; }


How to change the background color in TikZ?

How to change the paper color(background color) in tikz class kindly help me to change color    \documentclass{scrartcl} \usepackage[usenames,x11names,dvipsnames,svgnames]{xcolor} \usepackage{graphicx,amsmath,latexsym,amssymb,amsthm,geometry} \usepackage{tikz} \usepackage{pagecolor}% http://ctan.org/pkg/{pagecolor,lipsum} \usetikzlibrary{decorations, decorations.text} % tight page \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} % \begin{document}%  \begin{tikzpicture}         % outer circle             \draw[line width=2 mm,color=black,fill=white!10] circle[radius=7cm];         % outer text             \path[                 postaction={                     decoration={raise=.1ex,                         text along path,                         text format delimiters={|}{|},                         text={%                             |\Huge\bfseries\color{black}|                           name name {\textbullet} name {\textbullet} name name name name name                         },                         text align=fit to path,                         reverse path                     },                     decorate                 }             ]              (0:6.2cm) arc (0:360:6.2cm); \draw[line width=2 mm,color=black,fill=white!10] circle[radius=5.8cm]; % central text \node[color=Brown3] at (0, 1){\includegraphics[width=4.5cm]{14}}; \end{tikzpicture}% \end{document}


Before running a binary logistic regression model i was interested to know the strength of association between IV and DV but for some independent variables the results came out to be insignificant.. so would it be wise to carry those variables to the logistic regression ?


A good way to retain mathematical understanding?

What is a good way to remember math concepts/definitions and commit them to long term memory?  Background:  In my current situation, I'm at an undergraduate institution where I have to take a lot of core classes and easy math classes because there are no higher level courses available. Therefore, I have to study math on my own. It worked out fairly well, but I have a big problem when there's a lapse in my studying. For example, in February, I was working on transfer college applications, so I was unable to study math. Right now, I have less than a month left in school, so I need to work on all my term papers. It seems that when I take these extended breaks from studying math, like 2+ weeks, I have trouble going back, and occasionally I have to re learn a lot of the material. Previously, I was able to understand the definitions, theorems, etc and solve some of the exercises. Now, I need to look back on the definitions to understand what I wrote down! It's frustrating that I'm regressing in my mathematical education when I'm not actually studying math.


If a player casts e.g.  on enemy creature, who is the controller of the ? And in case the enchantment on enemy creature has activated abilities, who can activate them? The enchantment owner, or creature controller?  I am asking because of . What happens to enchantments on creatures the player controls when  is cast on them? Do they go to owner's graveyard or hand?


A friend of mine always texts me asking me to call him. While it's simple and informal to just text "can you call me?" or something similar, he insists on being fancy and texts "may you please call me?" Is this use of the word may correct?


Submitting comment on iOS sends me to limbo

When I successfully submit a comment (on an answer at least), I am taken to a blank page, and when I press the Back button I am returned to the app home screen instead of the question I was actually just viewing & commenting on.  My place on the page is (of course) competently lost and I have to manually find the question again and scroll to find where I left off.  If it is relevant: I was browsing questions from the Feed / HNQ screen.   App Version: 1.6.6.2 Device: Unknown (iPad7,5) OS Version: Version 12.0 (Build 16A366)


Why rejection of password is much slower than acceptance of it?

In both my Linux and OSX machines when I type in the password to login, a correct password is accepted immediately. However, if I type a wrong password, checking process takes much longer.   How is the process of password authentication in a UNIX machine?  Note: I have experienced this in Gnome3, Gnome2, Unity and different versions of OSX. That's why I believe it is not about some fancy animations that desktop environments have to alert a wrong password.


Stop iOS app from accessing the internet

There are some apps on iOS that I trust with Health information. These apps are fully capable of working offline. Is there any way to prevent specific third-party apps from accessing the internet on iOS? One possible use case would be to prevent the app from logging private data that it has access to. For example, there may be an app which acts as a fitness dashboard and allows you to visualize your fitness data in a "dashboard" fashion. Or there may be an scanner app, or a calculator app, both of which can run offline. It would be nice to be able to safeguard data that these apps have access to, such as health data in the case of fitness dashboards, or clipboard data, in the case of other apps, by ensuring that this data can't be sent anywhere.


spinner error when dialog show . my position dialog in adapter   java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.widget.Spinner.getSelectedItem()' on a null object reference  private void stopDialog(final MyViewHolder holder, int position){      android.app.AlertDialog.Builder dialog = new android.app.AlertDialog.Builder(context);     LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE );     View dialogView = inflater.inflate(R.layout.dialog_stop, null);     dialog.setView(dialogView);     dialog.setCancelable(false);      final Button dialog_button_positive = (Button) dialogView.findViewById(R.id.dialog_button_positive);     final Button dialog_button_negative = (Button) dialogView.findViewById(R.id.dialog_button_negative);     final Spinner statusstop1 = (Spinner) dialogView.findViewById(R.id.statusstop);     final String valuestatustop = statusstop1.getSelectedItem().toString();         final android.app.AlertDialog alertDialog = dialog.create();     alertDialog.show();      dialog_button_negative.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {               holder.switch_start.setChecked(true);             alertDialog.dismiss();          }     });      dialog_button_positive.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {               Toast.makeText(context,                     valuestatustop,                     Toast.LENGTH_SHORT).show();              alertDialog.dismiss();          }     });     }


Can a creature activate multiple items at once with the same command word?

Say a creature owns multiple items with wording similar to this:  As an Action, you may speak the command word to [...]  Say the creature has deliberately obtained such items, perhaps by creating them itself, to have the same command word. Can this creature use one action to speak the shared command word and activate multiple items at once? The purpose of this question is not to cheese my DM. I am writing a short story and like to keep my D&D fiction as close to rules-accurate as possible.


In PHP with PDO, how to check the final SQL parametrized query?

In PHP, when accessing MySQL database with PDO with parametrized query, how can you check the final query (after having replaced all tokens)?  Is there a way to check what gets really executed by the database?


Does Link Between World's Hero Mode impact the street pass battles?

Does any aspect of a Hero Mode game affect the street pass battle feature of Link Between Worlds?


How to get number of "columns" in an Array in Array?

How do I get the number of "columns" in this multi dim array?  The number of "rows", I can get with x.length (returns 3)  x[0].length is undefined but should return 4. It's probably easy but I don't figure it out.  (3) [{…}, {…}, {…}] 0: {0: "1", 1: "2", 2: "3", 3: "4 "} 1: {0: "5", 1: "6", 2: "7", 3: "8 "} 2: {0: "9", 1: "10", 2: "11", 3: "12 "} length: 3 __proto__: Array(0)


Registering multiple domains vs. subdomains

We are currently planning on registering multiple domains for different parts of the website we own. For example consider that we have example.com as the main domain and have assigned all the sub-departments their own subdomain.    There will be tutorials.example.com, videos.example.com, articles.example.com, etc.  Now for marketing reasons we plan to register examplevids.com, exampletuts.com, etc.    The catch here is all these domains should somehow point to their respective subdomains. We can either use a permanent redirect or have and iframe to display the content directly from the subdomains.   Which approach is better considering SEO?  Will using iframes be considered replicating content by search engines? Or is it at all wise to have different domains?


Computer can't resolve other computer names

I have a network with DHCP/DNS/AD setup with Windows 2012 server. Users cannot resolve computer names on the network without entering their FQDN, i.e. "server", but "server.domain.com" does.  The only way for me to make this work is to specify a DNS domain in the DHCP scope options, but that breaks some linux servers which are on another domain.  Is there a way for computers to resolve computer names without adding DNS domain in DHCP? From what I understand WINS is a dead technology so shouldn't be used.


Key-Value-Observing a to-many relationship in Cocoa

I am trying to get key-value-observing to work for an NSMutableArray. Below is the .h file for MyObservee, the observed class:  @interface MyObservee : NSObject {     @private int someValue;     @private NSMutableArray *someArray; }  @property (readwrite,assign) int someValue; - (NSMutableArray *)someArray; @end   The class MyObserver implements observeValueForKeyPath:ofObject:change:context:. Here is how I add the observer:  MyObservee *moe = [[MyObservee alloc] init]; MyObserver *mobs = [[MyObserver alloc] init];  [moe addObserver:mobs        forKeyPath:@"someArray"           options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)           context:NULL];  [moe.someArray addObject:@"hi there"];   How come the addObject: message isn't triggering as a change to the someArray key path? I have a feeling there's something I don't fully understand here.


Which one is correct " God protect you" or " protects you"

When I wish someone a good thing, I would say: God protects you. But I have found all expressions that pray to God use verbs without "s". Now I need to know what is the correct one. God protects you and helps you.


Count options for sitting people om a bench

I have this combinatoric question which I can't figure out. In how many ways can we sit 12 men and 12 women on a bench where no 2 women sit next to each other. The answer is : $ 13! \cdot 12! $ but my answer was $12! \cdot 12! \cdot 2 $ and I don't understand why my answer is wrong. I tried to look at a smaller example where there are only 2 men and 2 women with same limitations and coudln't count more then 8 ways which are $2! \cdot 2! \cdot 2 $ so I realy don't know how to proceed. Thank you


How do I print out one row from a 2D array given a parameter?

So I'm given a parameter in which the user chooses which row he wants me to print out, how do I print out the row that the user wants?  This is my 2D array:  Jewel[][] myGrid;   public Jewel[] getRow(int row) {       return null;   }


Source of least square estimator of Poisson parameter

I have $X \sim \text{Poisson}(\theta)$  I need to see how least square estimator of $\theta$ is obtained. Is there anything online showing that?


How do I prove that $1^4+2^4+3^4\cdots\ + n^4 = \frac{1}{5}n^5 + \frac{1}{2}n^4 + \frac{1}{3}n^3-\frac{1}{30}n$?  I've spent quite some time on this problem. So far, I've simplified the right-hand side to $\frac{1}{30}(n+1)[(2n+3)(3n^3)+n(n-1)]$. But then, the algebra becomes very complicated when I add $(n+1)^4$ to both sides of the inductive hypothesis.


Delete elements from a vector in C++11 while iterating over it

My applications requires to iterate over a vector and delete certain elements which doesnt satisfy the requirements. Which is the most correct way? I believe the following way is incorrect.Reason: I am getting segmentation fault.   std::vector<ObjectX> vec1; //Fill in vec1 std::vector<ObjectX>::iterator itVec1 = vec1.begin();  for(;itVec1 != vec1.end(); ++itVec1) {    if (Oracle(*itVec1)) vec1.erase(itVec1); }


How do I increase Bar Chart size with Matplotlib

I'm having trouble increasing the size of my bar chart. I am using a template and can't figure out how to increase the size. Currently my bars and labels are overlapping as shown.  Any ideas on how to fix? Template Code: import matplotlib.pyplot as plt import numpy as np   labels = ['G1', 'G2', 'G3', 'G4', 'G5'] men_means = [20, 34, 30, 35, 27] women_means = [25, 32, 34, 20, 25]  x = np.arange(len(labels))  # the label locations width = 0.35  # the width of the bars  fig, ax = plt.subplots() rects1 = ax.bar(x - width/2, men_means, width, label='Men') rects2 = ax.bar(x + width/2, women_means, width, label='Women')  # Add some text for labels, title and custom x-axis tick labels, etc. ax.set_ylabel('Scores') ax.set_title('Scores by group and gender') ax.set_xticks(x) ax.set_xticklabels(labels) ax.legend()  ax.bar_label(rects1, padding=3) ax.bar_label(rects2, padding=3)  fig.tight_layout()  plt.show()


Hello I have convert doc file to only string text. I use this function: :  function getRawWordText($filename) {     if(file_exists($filename)) {         if(($fh = fopen($filename, 'r')) !== false ) {             $headers = fread($fh, 0xA00);             $n1 = ( ord($headers[0x21C]) - 1 );// 1 = (ord(n)*1) ; Document has from 0 to 255 characters             $n2 = ( ( ord($headers[0x21D]) - 8 ) * 256 );// 1 = ((ord(n)-8)*256) ; Document has from 256 to 63743 characters             $n3 = ( ( ord($headers[0x21E]) * 256 ) * 256 );// 1 = ((ord(n)*256)*256) ; Document has from 63744 to 16775423 characters             $n4 = ( ( ( ord($headers[0x21F]) * 256 ) * 256 ) * 256 );// 1 = (((ord(n)*256)*256)*256) ; Document has from 16775424 to 4294965504 characters             $textLength = ($n1 + $n2 + $n3 + $n4);// Total length of text in the document             $extracted_plaintext = fread($fh, $textLength);             $extracted_plaintext = mb_convert_encoding($extracted_plaintext,'UTF-8');              // if you want to see your paragraphs in a new line, do this              // return nl2br($extracted_plaintext);              return ($extracted_plaintext);         } else {             return false;         }     } else {         return false;     }   }   This function return:     jednoznacznie implikuje poBo|enie   It should be:     jednoznacznie implikuje położenie   I try convert this string to polish letters:  return strtr ($mystring, array (             'B' => 'ł',             '|' => 'ż',             ));   But I have return:     jednoznacznie implikuje po�o�enie   I add (like here: )  header("Content-Type: text/html; charset=ISO-8859-1");   now I have this:     jednoznacznie implikuje po³o¿enie


What was the timeframe which the Ender's Game movie took place within?

The book and the movie for Ender's Game each appear to work within very different timeframes.   The book started when Ender was six and appears to have continued for a span of five to seven years. In contrast, during the movie, there's a shot in which Colonel Graff views a computer screen and sees the Formic ships in earth's vicinity. I believe that this shot of the computer screen indicated that the Formics were twenty eight days away. This would mean that the entire Ender's Game movie took place within a twenty eight day timeframe.  Can anyone confirm this?


Compute Galois group of $\mathbb F_q/\mathbb F_p$

I have to compute Galois group of $\mathbb F_q/\mathbb F_p$ where $q=p^n$. I know already that $\mathbb F_q/\mathbb F_p$ is galois, so I don't need to prove it. Moreover, I know that \begin{align*}\sigma :\mathbb F_q&\longrightarrow \mathbb F_q\\ x&\longmapsto x^p\end{align*} is an automorphism that fix elements of $\mathbb F_p$ and thus $\sigma \in Gal(\mathbb F_q/\mathbb F_p)$.  Now, I know that if $k<p^n$ then $\sigma ^k(x)=(x^{p})^k=x^{pk}\neq 1$ and thus $\sigma $ is of order $p^n$. Now if I can prove that $|Gal(\mathbb F_q/\mathbb F_p)|=p^n$, then $Gal(\mathbb F_q/\mathbb F_p)=\left<\sigma \right>$ and it would be finish, but I can't prove it since even $X^q-X$ split over $\mathbb F_q$, theis polynomial is not irreducible, and thus, I can't conclude. So how can I find an irreducible polynomial of degree $q$ that split over $\mathbb F_q$ ?


How do filmmakers avoid offending actors when casting?

Almost all characters in films necessitate actors who have certain features before makeup and costumes fill in the gaps. The role of James Bond, for instance, necessarily calls for a tall, handsome and athletic actor.  How do filmmakers avoid offending actors when they cast them (or seek to cast them) in a role where the character requires certain traits which may be considered undesirable, such as being overweight/unattractive/old etc.  One example that comes to mind is e4's 'My Mad Fat Diary' - how on earth would you cast that role in a tactful way?


What is the significance of a mostly blank user card?

What does it mean when the "user-details" block of a "user card" of an answer has a name but no link, no reputation, and no badges?     For example: on  by "Peter" on Mar 8 '09 at 14:26


How do I change the default application icon in Java?

I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file.  I've found many different web pages that claim they have a solution, but so far none of them work.  Here's what I have at the moment (leaving out the try-catch block):  URL url = new URL("com/xyz/resources/camera.png"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); getFrame().setIconImage(img);   The class that contains this code is in the com.xyz package, if that makes any difference.  That class also extends JFrame.  This code is throwing a MalformedUrlException on the first line.  Anyone have a solution that works?


How prices in stock market changes in accordance with demand and supply

Let's assume there is a listed company x. Currently it has 100 shares issued to trade in free float market. Current price of stock is let say 10. Now please let me know if I purchase one share of company x at the market price of 10. How it will effect the stock price. And please add and exemplify some other scenarios whichever you find good to explain more. For more information let say promoters of the company holds 100 shares with them like 50% of the company is with promoters and the other half is with people who invest or trade in that company. If I've missed to tell or assume any other vital info. needed please assume it yourself while mentioning it. I want to go deep down into the concept of demand and supply. How technically it happens. Thank You


Understanding how bytes are converted into GB in windows system information

I bought a laptop that was advertised as having 512GB hard drive. But when I checked in windows explorer it shows a size of only 475 GB  I also checked system information and that is displaying following screen  It says 512,105,932,800 bytes in brackets but then converts it to 476.94GB. My question is how come? On Google I see following conversion:  Can someone explain this to me? Who is right?


That is used as a restrictive form and can be used with people, animals and things. Who is mostly used with people.    I am confused where to use these two in the following particular situation:  Examples     The child that came here yesterday is dead.   The boys who were watching the match clapped heartily.   What is difference between these two sentences?


I compiled this code:  // Example program #include <iostream> using namespace std; struct A {     char a; }; struct B {     char b;     int a; }; struct C {     int * a;     unsigned char b; };  int main() {     cout<< "size of Strcut A:\t"<< sizeof(A)<<endl;     cout<< "size of Strcut B:\t"<< sizeof(B)<<endl;     cout<< "size of Strcut C:\t"<< sizeof(C)<<endl;     cout<< "size of int* :  \t"<< sizeof(int*)<<endl;     return 0; }   And I got this result:  size of Strcut A:   1 size of Strcut B:   8 size of Strcut C:   16 size of int* :      8   now I want to ask why the size of Strcut B is not 5? why the size of Struct C is not 9?  when the memory is importent in Embedded system how I should save memory in another platforms like ARM?  Can I say to the compiler it's 5 bytes or 9 bytes?


Find the norm of a linear combination of vectors, given their norms

If a and b are vectors such that $\|a\| = 4$, $\|b\| = 5$, and $\|a + b\| = 7$, then find     $\|2a-3b\|$.  So I first squared both sides and then got $ab = -44$. What do I do now?


I have a Ubuntu server with a Mysql daatabase. I would like to set up an automatic backup of this database during the night on another server (ovh for example).  I don't know what would be the best tool for that. If someone has some advices...  Thanks in advance.


Semaphore system used between communities

I was reading some posts earlier today on our sister site Worldbuilding.  In particular  which discussed how an empire could communicate between cities/communities remotely.  The question jogged a very faint memory of a story that I read around 10-15 years ago which had a similar system in use as a minor part of the plot.  I know that the story I read is not from Terry Pratchett or the other authors noted in the comments, therefore I'm hoping that you guys can help me out on this.  What I remember:   The book was a novel but a slim paperback book, maybe 200 - 275 pages.  A semaphore system using a kind of "morse code" was used to keep the communities of this story up to date with news, events, and possibly attacks from raiders. The semaphore was I think usable in both daylight and darkness via using white coloured markers (during the day) or lanterns (at night).  The communities were separated but close to each other (possibly separated by water.) The communities were low level technology, I don't recall any machines in the story. There was a main protagonist and I recall that he went on a "quest" but I can't recall why. The very vague recollections of the story would I think date the writing to late 1950's or 1960's.  No details come to mind on the cover I'm afraid on this one.


The Winter Bash icon is missing as with the hat's I earned. I have earned two hats, including one which come with the silver badge, It was there, and I was using it also. But now when I log in it's not there. Any help would be appreciated.    As you can see above there is not a hat or Winter Bash icon.  I am using macOS v10.13 (High Sierra) and my browser is Chrome version 63.0.3239.84 (official build) (64-bit).


How to judge whether model is overfitting or not

I am doing video classification with a model combining CNN and LSTM. In the training data, the accuracy rate is 100%, but the accuracy rate of the test data is not so good. The number of training data is small, about 50 per class. In such a case, can I declare that over learning is occurring? Or is there another cause?


I am using a USB extension lead to extend the length of my usb cable and I am wondering do these slow down the transfer of data from an external hard drive to the machine.


I want to display the structure of a matrix as shown in the image below:    Can this be done using pmatrix and \underbrace?  My attempt at combining pmatrix and \underbrace results in a compile error.  \documentclass{standalone}  \usepackage{amsmath}  \begin{document} $ \begin{pmatrix} %1 & \underbrace{1 & \cdots & 1}_{k} \\ % compile error! 1 & 1 & \cdots & 1 \\ 1 & 1 & 1 & 1 \end{pmatrix} $ \end{document}


Editing to change someone's brackets style?

Some people like to put the open { bracket on a separated line, e.g:  if(...) {     //... }   Is editing this code by merging the first two lines into single one rude?


Will Wizards offer a Character Builder for D&D 5e?

For those of us who are subscribed (and get the character builder online application as well as the monster creator, among other things), will they support a 5th edition builder?  If not, will they at least keep the 4th edition one in tact?


Dynamics of Event Horizons between head-on colliding non-rotating black holes

What happens to the event horizons of each black hole as the two identical non-rotating black holes collide head on?  At a point exactly between them, is the curvature zero (do the individual curvatures due to each black hole cancel out)?  Does it mean that when the holes begin to merge (event horizons touch) the event horizon of each black hole recedes away because the curvatures cancel out?  Does that mean I would then be able to peer inside a black hole? [tantamount to information now escaping from the original insides of the black holes]


Can I publish without affiliation ? Now I am not associated with any university and i want to publish one publication . Is there solution of this problem ?


Why is the time coordinate different in the metric?

I have been using the metric for quite a while now and I never thought about it. Why does the time coordinate always have an opposite sign to the space one?  In other words, why does the metric have this form(in free space)? $$ ds^2= -dt^2+d\vec{x}^2 $$


The case of the missing ninth of a $2$€ coin

In answering , I came across a phenomenon the likes of which I don't think I've encountered before, and I'd like to know more about it.  You draw coins, each coin independently being a $1$€ coin or a $2$€ coin with equal probability. Obviously you'd expect to draw as many $2$€ coins as $1$€ coins. In particular, the expectation of $A-B$, where $A$ is the number of $1$€ coins drawn and $B$ is the number of $2$€ coins drawn, is $0$ after any given number of draws.  However, conditional on reaching a total value of $n$ euros, the expectation of $A-B$ tends to $\frac13$ for $n\to\infty$ (in fact, it's positive for all $n\gt2$): The probability to reach $n$ euros with $k$ $2$€ coins and $n-2k$ $1$€ coins is $\binom{n-k}k2^{k-n}$, so the expectation of $B$ is  \begin{eqnarray*} &&\frac{\sum_{k=0}^n\binom{n-k}k2^{k-n}k}{\sum_{k=0}^n\binom{n-k}k2^{k-n}}=\frac{\frac2{27}(3n-1)+O\left(2^{-n}\right)}{\frac23+O\left(2^{-n}\right)}=\frac n3-\frac19+O\left(2^{-n}\right)\;,\\ \end{eqnarray*}  the expectation of $A=n-2B$ is $\frac n3+\frac29+O\left(2^{-n}\right)$, and  the expectation of $A-B$ is $\frac13+O\left(2^{-n}\right)$.  This is rather counterintuitive (to me): For any given number of coins the expectation is $0$, but for any given value of the coins it's positive. This is the stuff that paradoxes are made of if you're not careful how you talk about it, e.g.: “Someone is playing this game. What value do you expect for $A-B$?” – “$0$.” – “So far they drew $137$€. Now what do you expect?” – “$\frac13$.”  The resolution here is (as it often is) that the conditions aren't properly defined – we don't know why and when the person is telling us this amount. If they fixed a number of draws to wait for and then told us the total value at that point, the correct answer would still be $0$; if they fixed a total value to wait for and then told us when it was reached, the correct answer would be $\frac13$, but then the paradox of changing our mind just because we were told some number, no matter which one, wouldn't arise, because it's the stopping protocol that makes the difference.  Still, a certain uneasy sense of paradox remains, even if it temporarily retreats under the glare of careful analysis.  I don't have any concrete questions about this, but I'd be interested to hear about any other cases where such a phenomenon occurs, or names by which it's known, or approaches to deal with it, and perhaps also to ease that lingering sense of paradox.


Novel about underwater city with separatists

About twenty years ago, I read a sci-fi novel where, if I recall correctly:   The protagonist is a guy, and probably a teenager or a young adult. Like most of humanity, he lives on land; but he's visiting an undersea colony (one of many?), and that's where most of the action takes place. He gets to know a girl there about the same age; maybe he's staying with her family for some reason? (Maybe they're relatives of his?) The girl had an older brother ("Ian", maybe?), but he died. He goes out of the city (i.e., goes for a dive) at some point, and gets in trouble, but is mysteriously rescued. He learns about an underground separatist movement of some sort. (I don't remember the details.) He eventually discovers that:       Ian is actually alive, and his family (or at least his sister) is still in touch with him; but they're covering up the fact that he's joined this separatist movement, and (like some other separatists) has modified his body to have gills so he can live out in the ocean.      Ian is actually who rescued him mysteriously.     I would guess, in retrospect, that the novel is from the 70s or so; but I don't really know.  I read the novel in English, and I don't think it was a translation.


java.lang.NullPointer thrown at InputStream.read() method

I am currently writing a simple proxy server that accepts connection from my web browser. The problem is I cannot visit my school website at ice.xjtlu.edu.cn whereas my friend has no problem visiting it. It throws a NullPointerException at the line where read() is called.  private static final int BUFFER_SIZE = 32768; public void run() {      try {         DataOutputStream out = new DataOutputStream(socket.getOutputStream());         BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); //convert input to string          String temp = "";         temp = in.readLine();         String[] tempArr = temp.split(" ");          System.out.println("Type of connection: " + tempArr[0]);         System.out.println("URL of website: " + tempArr[1]);         System.out.println(tempArr[2]);          BufferedReader rd = null;         try {             System.out.println("Sending request to: " + tempArr[1]);              URL url = new URL(tempArr[1]);             URLConnection conn = url.openConnection();             conn.setDoInput(true);             // not doing HTTP posts             conn.setDoOutput(false);              InputStream is = null;             HttpURLConnection huc = (HttpURLConnection) conn;             if (huc.getContentLength() > 0) {                 try {                     is = huc.getInputStream();                     rd = new BufferedReader(new InputStreamReader(is));                 } catch (IOException e) {                     e.printStackTrace();                 }             }              byte[] by = new byte[BUFFER_SIZE];              int index = is.read(by, 0, BUFFER_SIZE);              while (index != -1) {                 out.write(by, 0, index);                 index = is.read(by, 0, BUFFER_SIZE);             }             out.flush();         } catch (IOException e) {             System.out.println(e);             System.out.println("is it this one");             out.writeBytes("");         }       //close sockets   I've read through the  for the read() method and NullPointerException will be thrown only if the byte[] is NULL.  However, how could the byte[] be NULL if it is always initialized to a size of 32768 prior to read() ?