Can somebody help me understand why the following relation holds: If $ a,m,x \in \Bbb{N}$ and $m\geq 2$ with $x | m $ and $x | a\iff x | (a\bmod m) $


UK Visa refused twice, should I give up?

I am an Algerian citizen, working as a computer scientist in Paris.  I have been refused a tourist visa for UK for the second time despite having strong applying documents, good income, and a rich travel history(I gave all my boarding passes that includes flights to +10 EU countries + canadian visa) The reasons given seem absurd to me, and I really think they just don't want me to visit UK independently from given documents.   You state that you intend to visit the UK for 4 days and propose tourism. Am I not free to decide how long I want to visit the country depending on my budget and holidays given by me employer ?  In support of this you have submitted your payslips, letter confirming employment and bank statements in French. It is unclear whether your employment is permanent, temporary or fixed term and whether your employer has granted you leave for the stated duration of your trip. I could have agreed with this argument, if I haven't applied with a colleague that has gave the same proof of employment as me(which was in french), and had his visa. Furthermore the visa application required documents are around 50 pages long, and it costs around 50€ to translate one paper, which means I have to spend 2500€ for translating document, this is ridiculous ! For my first application that has been refused too, all documents were in french and this wasn't the reason of the refusal(it was because I applied during summer as a student and I didn't have my new student card yet), they were able to extract information from the application's documents.  I note that the bank statements you have submitted do not correspond with the income you have stated on your Visa Application Form (VAF) or your payslips. This is I think the worst reason, some months I'm paid 2000€ instead of 2100€ because it was a month with one less working day(30 instead of 31)  The bank documents you have provided show large credits not commensurate with your documented income in the time leading up to your visa application. There is no explanation provided regarding the origin of these funds. I am not satisfied these funds are genuinely available for your use and have been provided to you for the sole purpose of obtaining an entry clearance for the UK. I don't know what to say about this, I have other accounts where that a use to transfer money to for savings. I don't know what more I can do to proof that these funds are mine, since they are here in my account for years.  Considering the refusal reasons, the only document I can translate is my certificate of employment and income given by my employer, and since this refusal(one month ago) I have been given an USA visa. So, with these two new elements, is it worth applying again or should I give up ? I'm afraid they will think I'm a bit obsessed if I apply again(which is partially true because UK /Eire is the only part of Europe I haven't visited yet)


How to reset default browser for all users

How do you set the default browser for all users back to Firefox in Ubuntu 16.04?


The if statement does not execute even when I enter the value "d"

@Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_story);          Intent intent = getIntent();         String name = intent.getStringExtra("name");          if (name == "d")         {             name = "Spike";         }          TextView heading = (TextView) findViewById(R.id.storyTextView);         heading.setText("And our story begins with " + name);


Show that $\dim H^0(\mathbb{P}^n, \mathcal{O}_{\mathbb{P}^n}(m)) = {n + m \choose n}$ if $m \geq 0$, and $0$ otherwise.

Show that $\dim H^0(\mathbb{P}^n, \mathcal{O}_{\mathbb{P}^n}(m)) = {n + m \choose n}$ if $m \geq 0$, and $0$ if $m < 0$. This statement came up in an algebraic geometry text with no explanation provided, and I'm trying to understand why it's true.   Thoughts so far:   Since $H^0(\mathbb{P}^n, \mathcal{O}_{\mathbb{P}^n}(m))$ is the vector space of regular sections of $\mathcal{O}_{\mathbb{P}^n}(m)$ over $\mathbb{P}^n$, we can try to find a basis. Since the regular sections are the degree $m$ polynomials in $x_0, \dots, x_n$, it seems like the collection of degree $m$ monomials in $x_0, \dots, x_n$ should work. But I don't see how there are ${n + m \choose n}$ of these. Is it just a basic counting argument that I'm struggling with?  On a side note, I think I understand what global sections of $\mathcal{O}_{\mathbb{P}^n}(m)$ look like, but how can we describe the regular sections over a distinguished open set $D(f)$? Is it something like degree $m$ polynomials with denominator $f$?


Let $F = \mathbb{Q(i)}$. Prove that $p(x) = x^3 - 3$ is irreducible over $F$.  attempt: Suppose  $F = \mathbb{Q(i)}$. Then let $p(x) = x^3 -3$ ,then $p(x) = x^3 -3$  is irreducible over $\mathbb{Q}$ since it is Eisenstein and since it is a cubic root which has no rational root.  Hence $[\mathbb{Q}(\alpha): \mathbb{Q}] = 3$ for any root $\alpha$ of $p(x)$.  i.e., the degree of $\alpha$ over $\mathbb{Q }$ is the degree of the extension it generates over $\mathbb{Q }$.  We also know that in $\mathbb{Z(i)}$ , $p(x) = x^3 -3$ is irreducible, where $\mathbb{Z[i]}$ is a UFD.   And suppose $F = \mathbb{Q(i)}$ is an extension field of $\mathbb{Z(i)}$ containing the root $\alpha$ of $p(x)$ . Then $Z[\alpha] \cong Z[x]/(x^3 - 3)$.  Can someone please help me? I am stuck. I was hoping that because $p(x)$ is irreducible in $Z[i]$ , then that might help with showing $p(x)$ is irreducible in $ F.$ Thank you for any help!


C++ Update Object attributes using set function

I'm writing a bookshop program. The program stores a number of books with their associated values (title, price, isbn, author) in a vector. One of the functions I'm trying to write is to search the vector by isbn and update the values of whichever book matches. Here is my code  void UpdateOnIsbn(vector <CBooks> booklist) {     string searchisbn;     char response;     string booktitle;     string author;     double price;     string ISBN;      cout << "Please enter an ISBN to be searched: ";     cin >> searchisbn;      for (int i = 0; i < booklist.size(); i++)     {         if (booklist[i].HasISBN(searchisbn))         {             booklist[i].Display();              cout << "Would you like to update the details of this book? (Y/N): ";             cin >> response;              if (response != 'n' && response != 'N')             {                       cout << endl << "Please Enter New Title for book: ";                     cin >> booktitle;                     booklist[i].SetTitle(booktitle);                      cout << endl << "Please Enter New Author ";                     cin >> author;                     booklist[i].SetAuthor(author);                      cout << endl << "Please Enter New Price ";                     cin >> price;                     booklist[i].SetPrice(price);                      cout << endl << "Please Enter New ISBN ";                     cin >> ISBN;                     booklist[i].SetISBN(ISBN);                  }           }     } }   The function seems to work as it looks for new values to be entered but after it runs the old values are not replaced when I display the books again. Please help  Here is an example of one of the set functions:  void CBooks::SetPrice(double NewPrice) {     m_Price = NewPrice; }


I need to find a way to deploy code from GitHub to salesforce using Docker Cloud or Docker because my client requested it. I needed senior's suggestions on deployment from GitHub to to salesforce with  and i found way to do it with BitBucket  but didn't find with GitHub or at least is it possible at the current moment.


$z,a$ are both complex numbers. And $|z|\lt1,|a|\lt1$, prove $$|\frac{z-a}{1-\bar{a}z}|\lt1$$   I tried by denoting $z=x+yi,a=t+si$, and substitute them in $|\frac{z-a}{1-\bar{a}z}|$, but make it seems too sophisticated. So I am thinking about if there are ways more elegant to solve this by using some properties about complex number.


As the title says: how can I find the subgroups of $S_n$? I know that $S_n = <(1 2), (1 2 .. n)>$ and $S_n = <(1 i): i = 2, 3, .. n>$. But how do I find all subgroups? And how do I know their orders?


How to create a USB Ubuntu boot device from OSX for PC?

My Dell XPS 9350 is not booting Ubuntu anymore. It did not have dual boot but single boot only and the ssd is encrypted.  I am trying to create an Ubuntu bootable usb stick from Mac Apple OSX but until now all attempts failed.  I formatted the pendrive to MS-DOS.  Can I use directly the iso image file i.e.,  sudo dd if=Downloads/ubuntu-18.04.2-desktop-amd64.iso of=/dev/rdisk2 bs=1m   or as I have read elsewhere, should I convert the iso file:  hdiutil convert -format UDRW -o Downloads/ubuntu-18.04.2-desktop-amd64 Downloads/ubuntu-18.04.2-desktop-amd64.iso    which creates Downloads/ubuntu-18.04.2-desktop-amd64.dmg:  sudo dd if=Downloads/ubuntu-18.04.2-desktop-amd64.dmg of=/dev/rdisk2 bs=1m?


I often see mathematicians make statements like  "A priori, it is not clear whether 231283179 is a prime number or not."  This is supposed to mean something like "just by looking at it, without thinking about it, we can't easily see whether 231283179 is prime or not".  Is this a valid use of the phrase "a priori"? It appears to me that most people believe mathematical arguments to be of the a priori kind - and with a fairly simple mathematical argument, one can find that 231283179=191x12109067, and conclude that 231283179 is not a prime number - hence, a priori, 231283179 is not a prime number, and the above quote does not really make sense.  Have I misunderstood, or are mathematicians being lazy?


Why is there an apostrophe followed by "s" in "Miss Sullivan’s having a sister"?

In this sentence:     Cherry had never conceived of Miss Sullivan’s having a sister.   Why is there an ’s right after Miss Sullivan?


I know what padding is and how alignment works. Given the struct below:  typedef struct { char word[10]; short a; int b;   } Test;   I don't understand how C interprets and aligns the char array inside the struct. It should be 9 chars + terminator and it should be regarded as the longest like this:  | - _ - _ - _ - _ - word - _ - _ - _ - _ - | | - a - | - _ - b - _ - | padding the remaining 4 bytes   The "-" represents a byte and "_" separates the bytes. So we have the 10 bytes long word, the 2 bytes long a and the 4 bytes long b and padding of 4 bytes. But when I print sizeof(Test) it returns 16.  EDIT: I got it.


Real Analysis: Quick Proof Verification using Mean Value Theorem

Let $f: \mathbb{R+} \to \mathbb{R}$ be differentiable such that $f'(x) \to 0$ as $x. \to \pm \infty$.  Show that the function g defined by $g(x)=f(x+1)-f(x)$ tends to $0$ when x tends to $\ \infty$.    Proof: we apply the Value theorem on the interval $(x,x+1)$.  By the Mean value Theorem, since $f$ is differentiable and continuous on such an interval, we know that there exists a $c_x$, where c depends on x so that $f'(c_x)=f(x+1)-f(x)/1. $  Thus $f'(c_x)$=$f(x+1)-f(x)$.  As x goes to $\ \infty$, $f'(c_x)$ goes to $f'(x)$ which goes to 0 by assumption.  Hence, we have $f(x+1)-f(x)$ tends to 0 when x tends to $\ \infty$.  Hence, we are done.  Is this correct?


Determining the distribution of fitted values and residuals

For exam prep, we're supposed to answer this question (which we are supposed to be able to find the answer to in the course literature)     For the model specified in a) and proper normality assumptions on ε, obtain the distribution of ŷ and e = y − ŷ   where the model referred to in a) is the standard form of the multiple regression model  \begin{equation} \mathbf y = \mathbf X \pmb \beta + \pmb \epsilon \end{equation}  with all proper normality assumptions fulfilled. I've been trying to find the answer in the chapter covering multiple regression in Introduction to Linear Regression Analysis (which is our course literature) and online, but I can't seem to find the answer.  Could you point me in the right direction?


The degree of $\sqrt{2} + \sqrt[3]{5}$ over $\mathbb Q$

I know that the degree is at most $6$, since $\sqrt{2} + \sqrt[3]{5} \in \mathbb Q(\sqrt{2}, \sqrt[3]{5})$, which has degree $6$ over $\mathbb Q$. I'm trying to construct a polynomial with root $\sqrt{2} + \sqrt[3]{5}$ and coefficients in $\mathbb Q$ of degree $6$, and then show that it is irreducible over $\mathbb Q$.   I managed to find that it is a root of the polynomial $x^6 - 6x^4 - 10x^3 +12x^2 - 60x +17$. This is where I run in to some problems. I don't know how to show that this is irreducible over $\mathbb Q$ (or $\mathbb Z$). The only criteria we have learned is Eisenstein's criteria, which clearly does not apply here. How else can I show that the degree of this number over $\mathbb Q$ is $6$?


In terminal, how can I write 'sagi' instead of 'sudo apt-get install'

I'm tired of always writing sudo apt-get install <package> whenever I need to download something, so is there a way for me to make the terminal understand that when I write sagi <package>, I really mean sudo apt-get install <package>?


We know that $\mathbb{Q} [x,y]/(x)$ is  isomorphic to $\mathbb{Q}[y]$.  My question is  that       Is $\mathbb{Q}[y]$ is field  ?  Yes/No   My attempt: I think  yes, because  we know  $ \mathbb{Q}[x] $ is a field and an integral domain  in a similar way  we can also said that $\mathbb{Q}[y]$ is a field and an integral domain  Is its true ?


I need to install Tally.Server 9 on a Ubuntu 12 server.  Tally is a accounting software and a multi user application where the main application is installed on the server and users have the client side version installed in the users PC.


Seeking birth and/or death certificate for Ian Symington Torrance who died in South Africa in 1970?

Seeking a copy of the birth and/or death certificates of Ian Symington Torrance who died near Johannesburg (South Africa) in 1970.


I want to install perl module CAM::PDF for Linux. Can somebody please suggest that how can this be done? I was unable to find any place where I could download this module from.


High voltage LED indicator 40-1000 VDC without additional power supply

I would like to make an indicator to show that DC bus (700VDC) capacitors are charged (be careful!).  What is the best way to make a LED indicator, which will work for a long time from 40VDC to 1000VDC without additional power supply and with minimum power losses?


Problem with typesetting maths content in an unusual font in beamer

I want to typeset math in different font called Antykwa Torunska, which supports maths. Unfortunately, when using it in beamer the math font is switched to the standard math font of beamer. How can I change this behaviour?  Here is a minimal example:  \documentclass{beamer} % Mathekram: \usepackage{amssymb, amstext, amsmath} % Font: \usepackage[math]{anttor} \usepackage[T1]{fontenc}   \begin{document}  \begin{frame}{Testframe}    This is fine: 1234567890, \textit{x}, \textit{p}, \textit{t}\\    This is not fine: $1234567890$, $x$, $p$, $t$ \end{frame}  \end{document}   When I change beamer to article it works fine.


Minecraft 1.10.2 Problem: Expected token 'm'

I am making an adventure map that includes a sort of redstone clock. I want to set a command block connected to the clock and have it spawn items. Unfortunately, I am not very skilled in command blocks and could use a little help.  This is my command:     /setblock 138 93 254 minecraft:command_block 0 replace   {Command:"/summon Item 140 115 245   {Item:{id:"minecraft:gold_nugget",Count:1}}"}   When I execute the command, it returns with this output:  Data tag parsing failed: Unexpected token 'm' at: minecraft:gold_nugget",Count:1}}"  Can anyone please help me?  Thank you.


I wrote equations and don't understand why some equations are displayed and others not. For example this equation can't be displayed  \begin{quote} \begin{equation} Sim_{Dice}=\frac{2\times a}{c_{1}+c_{2}}  \end{equation} \end{quote}   and this equation is correctly displayed  \begin{quote} \begin{equation} I(X,Y)=\sum\limits_{x,y}P(x,y)\ log \ \frac{P(x,y)}{P(x)P(y)} \end{equation} \end{quote}   they are in the same document.


A specific question has been revised 16 times...what to do?

I have a specific situation for which I require the input of the community before I take action, because I am not confident enough in my evaluation of the situation to take the appropriate action.  I answered  about 2 weeks ago, but the OP of the question has now edited the question so many times, my answer no longer makes sense, in fact he integrated my answer into the question and now is asking about another problem.  From , I am aware that the normal actions for such situations are:   Rollback the Edit   Delete my answer Edit my answer to match the new question.   However, this user has been known to do this same exact thing previously, in fact  was also converted to CW because he edited too many times.  I've already done step #2, I left a comment to try to explain, but I'm at a loss on how to handle this.  I don't really want to edit my answer to address his new problem as I don't want to encourage this activity, so I'm left with trying to decide whether to delete my answer or rollback his edit so my answer is within the scope of the question.  I would appreciate the input of some more experienced users on how I should handle this specific case?  And possibly offer some guidelines on how to make this decision in the future.


How visited is visited in the context of Fanatic?

The fanatic badge is awarded if you visited the site for 100 consecutive days. Apart from , but I was wondering, what does a visit entail? Any of these?   Visit for at least 1 second Visit for at least 86.400 seconds Visit and did something, incl. voting, tagging, commenting, time of visit not counted Visit and did some more thing, at least asked/answered/edited a question Visit site while John Skeet is present   In short, is a visit a hit, or an active visit?


How to get condition where date > 24 hours

Let say I have one field resolved.time. resolved.time="07/06/17 14:19:39"  I would like to write a condition on javascript like this:  if resolved.time>24 hours{ print("true"); } else { print("false"); }   How can i write this condition "if resolved.time>24 hours" on JS? Appreciate for anything help.  Thanks and regards, Okik


Regular expression for mobile number error in case 1 1 1 1 1 1

I want a regular expression for mobile number validation. I have tried below regular expression. If I enter 1 1 1 1 1 1 it will not be accepted. Will you please help to to find what is my mistake in regular expression.   Regular expression is: "^\s*+?\s*([0-9][\s-]*){6,}$"


Select player that does not have a specific score set

I want to select all players that do not have a specific scoreboard objective value set. I have tried doing testfor @a[score_hasJoined=] and testfor @a[score_hasJoined_min=], but it still won't work. The hasJoined objective is a dummy objective, and therefore users do not start with 0 when they join.   I want to set all players' score without the score to 0. I have thought that there maybe is an objective that automatically starts at 0 but I couldn't find one.


When did "species" become the word for both the singular and plural?

I thought the singular version was"specie," and the plural was"species." Was "species" always an acceptable equivalent to "specie?"


gnome-terminal fails to start (timed out)

I just upgraded from Ubuntu 16.04 to 18.04. My workflow is to connect from Windows using VcXsrv to Ubuntu (ssh with X tunneling), starting a xterm on Ubuntu. Inside the xterm I am typing gnome-terminal to get a gnome-terminal. Since the upgrade this is not working anymore. I am getting $ gnome-terminal   # Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.   # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Fehler beim Aufruf von StartServiceByName für org.gnome.Terminal: Zeitüberschreitung wurde erreicht    or when starting with English locale $ LANG=en_US.utf8 gnome-terminal   # Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.   # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached  I am not always getting the first line, but I am always gettint the timeout error. Digging more into the issue I found out  sudo gnome-terminal works gnome-terminal works when run in a xterm when locally logged in on the PC when I am also logged in locally on the PC then gnome-terminal in the remote session's xterm opens a gnome-terminal on the local session on the PC (still getting the first error line about registering with accessibility bus) when I am also logged in over rdp (Windows network connection) then a gnome-terminal in the ssh session opens a gnome-terminal in the xrdp session when I login over rdp (Windows network connection), logoff there, then gnome-terminal can open a gnome-terminal  What can I do to get gnome-terminal in a remote session's xterm to work?


How to evaluate this integral$\int_{-\infty}^\infty\dfrac{\omega^\alpha e^{i\omega t}}{(\omega_0^2-\omega^2)^{2}+4(\zeta\omega_0\omega)^2}\,d\omega$

How to calculate the following integral? $$\int_{-\infty}^\infty\dfrac{\omega^\alpha e^{i\omega t}}{(\omega_0^2-\omega^2)^{2}+4(\zeta\omega_0\omega)^2}\,d\omega$$  where $\alpha>0,t>0,\zeta>0,\omega_0>0$.  When $\alpha=0$, I can figure it out by Residue theorem. However, I do not have any idea how to calculate this integral when $\alpha>0$. Does this integral have an analytic solution?


I'm making a simple program where the user has to dodge some obstacles (from an abstract Obstacle class) like rocks, jellyfish, and swimmers (all extending the Obstacle class). I'm creating three of these objects in the constructor Background that I've created, however, I'm getting a NullPointerException on these. Can anybody show me what I'm doing wrong to get this exception please?  The Background object is created in a Runner class, but I'm getting the exception in just the constructor.  public class Background extends JPanel implements Runnable {     public static Dimension d;     public Thread game;     public int hlth;     private ArrayList<Obstacle> os;     private User u;     private JLabel pic;     private ImageIcon picture;     private Tools t;      public Background(Dimension dim)     {         //set up the JPanel dimension         d = dim;         this.setPreferredSize(d);          //unrelated - just set up the background in a jlabel          //unrelated - just set up a health jlabel at top of screen          //set up the arraylist of obstacles         os = new ArrayList<Obstacle>();         os.add(new JellyFish(t.rX(), t.rY())); //the program is crashing here         os.add(new Rock(t.rX(), t.rY()));         os.add(new Swimmer(t.rX(), t.rY()));          u = new User();          game = new Thread(this);     }     //not related }  public class JellyFish extends Obstacle {     public JellyFish()     {         super();     }      public JellyFish(int useX, int useY)     {         super(useX, useY);     }      //unrelated - draw the JellyFish using graphics }   Thanks in advance!


How to block all ports except 80,443 with iptables?

Blocking all ports(in and out) is easy but it's hard with the word "except". I don't know any rules that satisfies the condition.  PS: I know this question is nothing new. But in fact, I didn't find anything helps. So, help me pls!


You're too clever a man to imagine this.   The above sentence was , a man of excellent rhetorical skills.   Since he said it, I doubt it's wrong, grammatically. But, I wonder if there is an explanation for this. Because adjectives always come after the article not before it. e.g. You're a clever man.   How could this be, grammatically?


How do I get an XBOX 360 controller working?

I have a Microsoft XBOX 360 gamepad with the wireless adapter and I was wondering what I would have to install to use them with Ubuntu I do know that when using this on Windows I have to manually install the drivers for the wireless receiver (if that is relevant.)


What is the difference in what AIC and c-statistic (AUC) actually measure for model fit?

Akaike Information Criterion (AIC) and the c-statistic (area under ROC curve) are two measures of model fit for logistic regression. I am having trouble explaining what is going on when the results of the two measures are not consistent. I guess they are measuring slightly different aspects of model fit, but what are those specific aspects?  I have 3 logistic regressions models. Model M0 has some standard covariates. Model M1 adds X1 to M0; model M2 adds X2 to M0 (so M1 and M2 are not nested).  The difference in AIC from M0 to both M1 and M2 is about 15, indicating X1 and X2 both improve model fit, and by about the same amount.  c-statistics are: M0, 0.70; M1, 0.73; M2 0.72. The difference in c-statistic from M0 to M1 is significant (method of DeLong et al 1988), but the difference from M0 to M2 is not significant, indicating that X1 improves model fit, but X2 does not.  X1 is not routinely collected. X2 is supposed to be routinely collected but is missing in about 40% of cases. We want to decide whether to start collecting X1, or improve collection of X2, or drop both variables.  From AIC we conclude that the variables make similar improvement to the model. It's probably easier to improve collection of X2 than start collecting a completely new variable (X1), so we would aim to improve X2 collection. But from c-statistic, X1 improves the model and X2 does not, so we should forget about X2 and start collecting X1.  As our recommendation depends on which statistic we focus on, we need to clearly understand the difference in what they are measuring.  Any advice welcome.


I am building a module on drupal 8 to make a redirection after a form is submitted  function form_redirect_form_alter(&$form, FormStateInterface $form_state, $form_id) {     $form['actions']['submit']['#submit'][] = 'ptt_contact_form_blocks_submit'; }   function ptt_contact_form_blocks_submit($form, FormStateInterface $form_state) {     $form_state->setRedirect($route_name); }   but for the setRedirect, it needs to have the route name. Like if i want to redirect to node/24, then how can i find the route name of the node?  Thanks!


How to access a key through its value in Python?

banks = {     "National Bank of Canada" : "327",     "Toronto-Dominion Bank" : "302",      "Royal Bank of Canada" : "173",      "Wells Fargo" : "273",      "Goldman Sachs" : "87",      "Morgan Stanley" : "72",      "Canadian Imperial Bank of Commerce" : "83",     "TD Bank" : "108",      "Bank of Montreal" : "67",      "Capital One" : "47",      "FNB Corporation" : "4",      "Laurentian Bank of Canada" : "3",      "Ally Financial" : "12",     "Montreal Trust Company" : "145",     "Canadian Western Bank" : ".97" }    for value in banks.values():     count += 1     total_mkt_cap += float(value)     total =+ count     if float(value) > float(largest):         largest = value  The variable largest is now the value 327, but I would like largest to be the key which is "National Bank of Canada", not the value, any help appreciated, thank you


Taking back turns, and forgotten privileges

A generic question across most board games: once a player has taken their turn (taken their finger off the piece they are playing), should they be allowed to change their mind?  Similarly, if a player forgets to take a privilege, such as an occupied building in Puerto Rico giving an extra worker, or plantation, if they remember a few moves later, should they be allowed to take the privilege?  Very few rules explicitly express how these events should be dealt with, so they are generally left up to the group. However, my group's rules will change depending on the personality of the players playing (not all members are available each time we play). I would like to make this consistent, and would appreciate feedback on how others deal with this scenario.


I've been making a beauty and the beast animation for a school project. and I've created a particle system that sort of creates streaks coming from a single vertex however it will only show in 3D view solid mode. so it wont render in my final product could someone pls tell  me why? Sorry if it's obvious i am reasonably new to blender.


Searching for  doesn't unroll the tags in search input (top bar + page specific):        Eliminating the  from the search query will unroll the tags in the top bar search input (page specific search input is not visible at all):        Is there a reason for such a different behaviour?


How to convert a pattern/photo to a given palette?

How would I convert a photograph or pattern to use only colors from a palette I give it? Is this possible in Photoshop? I think Pic2Color used to do something like this but it's offline...


Did Yoda Intend On Training Leia As a Jedi?

In Episode V, The Empire Strikes Back, when Luke is leaving Dagobah, Obi-Wan, as a Force Ghost, says, "He is our last hope."  Yoda replies, "No, there is one other."  Was Yoda planning on training Leia as a Jedi, either in case Luke was killed or converted, or in addition to Luke?


How to correctly escape command arguments from an environment variable

I'm trying to merge the output of 2 find commands and pipe it to the next operator. The arguments passed to both find executions are very similar so I'd like to keep it DRY  FIND_CMD_ARGS="-type f \( -iname \*.m -o -iname \*.swift \) -print0" CMD_OUTPUT=`{ find $PROJECT_PATH -not -path '*/Pods/*' $FIND_CMD_ARGS; find . -path '*/Pods/MyProject*/*' $FIND_CMD_ARGS }`   For some reason this doesn't work and this is the output I get  find: illegal option -- n usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]        find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] find: -type f \( -iname \*.m -o -iname \*.swift \) -print0: unknown primary or operator   I think the issue is related to how the args in the FIND_CMD_ARGS environment variable are escaped but I can't figure out the right way to do it.  Any ideas? Thanks!


How do I prompt a user for confirmation in bash script?

I want to put a quick "are you sure?" prompt for confirmation at the top of a potentially dangerous bash script, what's the easiest/best way to do this?


Let $A$ be an $n\times n$ invertible matrix. Let $a \in \Bbb C$, let $\alpha$ be a row $n$-tuple of complex numbers and let $\beta$ be a column $n$-tuple of complex numbers. Show that $$(\det(A))^{-1}\, \det\left(\begin{bmatrix}a & \alpha\\ \beta & A \end{bmatrix}\right)=\det\left(a-\alpha A^{-1}\beta\right).$$ Can anyone show me how to prove this?


I would like to use the HP LaserJet Pro M1132 Multifunction Printer on Ubuntu 20.04, however it seems that the latest drivers are for Ubuntu 12.04 (see here: ), so it doesn't print. I wondered if it is possible just to use the Ubuntu 12.04 drivers, but through the hp-setup utility it just stalls for ever, and so has no results. Is there a way to get my printer going?


Please stop using SoftwareEngineering.SE as your toilet bowl

Stack Overflow users have been using the "off topic - belongs on SoftwareEngineering.SE" close reason as an alternative to all the other close reasons. It'd be helpful if people actually read the FAQ and the six  before voting to migrate questions like:   , no redeeming value to favorite lists that become argumentative , "help my exact situation" questions are too localized , fails 5 out of the 6 guidelines , fails 4 out of 6 , too localized and too vague , too broad   Absent a reversal of the Stack Overflow community from viewing SoftwareEngineering.SE as the Stack Overflow cesspool, can the "off topic - belongs on SoftwareEngineering.SE" close reason be removed in favor of manual migration by moderators who can actually spend the 10 seconds to determine if the question should be closed outright first?    To say that SoftwareEngineering.SE is such a nebulous place and nobody knows what its scope is as the reason why crappy questions keep getting migrated there is to miss the point. Good questions are good questions on all of the sites, and questions that are too vague, that are too argumentative, too localized, and too broad are universal close reasons. There is no special dispensation for SoftwareEngineering.SE to have bad questions, even if you personally think the questions on there suck.  Even the six subjective guidelines for subjective questions are universal guidelines: they affect all sites. So even if you had no idea what the consequences of using the "off topic - belongs on SoftwareEngineering.SE" close reason were, there are still all of the other close reasons for which bad questions, like the ones above, can be closed.


Formation of words having length 5 by using 2 letters

In how many ways can 5 letter words be formed with 2 letters - Y and N. Ex - YYYNN, NNNYY etc.


Spell Check Error in LibreOffice - Ubuntu 12.04

Spell library package already installed in Ubuntu 12.04, even though LibreOffice is not able to find out Spelling errors in a file.  How can I fix this? Is there is any other office available for Free in Ubuntu 12.04?


I can come up only with serialization, using of WCF, etc. But is there the standard common way for communication between 2 processes in .Net?  UPDATE: What I actually mean how to communicate between 2 processes locally when I do not need to use WCF, Remoting and network at all. Are there some ways of doing it? And I am interesting in more elegant ways than storing data to HDD or to database.


Why am I having trouble entering a new Gmail password in Mail (and Internet Accounts)?

I'm required to change my school Gmail password every year.  I recently did so, and it seems to work just fine for accessing Gmail with a web browser.  It also works fine in the Mail app in iOS (I was asked to enter the new password, but it accepted it just fine).  However, in the Mail app on macOS, I've run into some issues.  It shows a "Login Failed" message on the top right of the window as well as the telltale lightning bolt "offline" icon to the right of the mail in the left sidebar.  I totally expected to see both of those, since Mail is trying to access the account using the old password.  But I can't get past that.  If I click on either of those, it opens a dropdown/popup where I can enter the password:   That's all good.  After I enter the password, though, I see a "loading" animation (a spinning-type one) for a brief second and then just blank gray in the window:   The same thing happens if I try to do this in the Internet Accounts section of System Preferences.  Does anyone know why this is happening and how I can resolve it?


What is the command to insert a cross-like sign?

What is the command to insert the following cross-like operator in a latex document?    Thank you for your help.


How Character array is getting swapped in my code in java

Lately, I have been learning java and was coding the problem of finding the greatest number having the same digit as per given input(String input). The problem demanded a swap function.Below is the code.  swap(c,5,4);  //c is my character array.5 and 4 are the integers whose characters are to be replaced  public static void swap(char demo[],int x,int y)  /*the function defined in the same class where function is declared */     {         char temp=[x];         demo[x]=demo[y];         demo[y]=temp;     }   My query :  1) I am aware of the fact that in java pointers are no there unlike C/C++, but I am in doubt then why did my characters at 4 and 5 got swapped in my original array c since in C/C++ pointers were helping to modify the original array.I am unable to understand how java deals with it?  2) Like in C/C++, when you return back from function definition, the temporary variables get erased.Isn't this the case with java because had it been coded in c/c++, my above code wouldn't have swapped my original array until I send references.  I am a naive, and have searched it here but couldn't find the answer to this.I would be grateful if I get a little insight on this.


Reverse a linked list recursively in Java

I am trying to achieve a reversed link list. The new fresh list  must be created recursively.  I am creating the first node in the reversed list and I am trying to create a sublist Next which has the next element as next.next and finally to assign this sublist as next to the node. The issue is that the next node remains NIL although I recreated it in the for loop.  Edit:  The function must not change (add arguments) because some tests are running upon it.  class Node {     private Object item;     private Node next,current;      public Node(Object o, Node n) {         this.item = o;         this.next = n;     }       public Node(Node n) {     }      public static final Node NIL = new Node(Node.NIL, Node.NIL);      public Object getItem() {         return this.item;     }      public Node getNext() {         return this.next;     }      public void setItem(Object o) {         this.item = o;     }      public void setNext(Node n) {         this.next = n;     }      // this method returns the item with index number i     public Object nthItem(int i) {         Node p = this;         while (p!=null){             for (int k=1;k<=i;k++){                 p=p.next;              }             return p.item;         }         return null;       }      // this method returns the the next item of the node     public Node nthNext(int i) {         Node p = this;         while (p!=null){             for (int k=1;k<=i;k++){                 p=p.next;              }             return p.getNext();         }         return null;     }      public Node nthNode(int i) {         Node p = this;         while (p!=null){             for (int k=1;k<=i;k++){                 p=p.next;              }             return p;         }         return NIL;       }      public int length(){         if (this == NIL) return 0;         else return 1 + next.length();     }      public Node remove(Object o){         Node p = this;         if (p == NIL) return NIL;         else if(p.item == o) {             p = p.next;             return p.remove(o);         }          else return new Node(p.item, p.next.remove(o));      }      public Node reverse() {         int i = this.length()-1;         if(this == NIL) return NIL;          Node node = new Node(Node.NIL, Node.NIL);          Node next = NIL;          //create the first node in the reversed list         if(i >= 1) node = new Node(nthItem(i), next);         else node = new Node(nthItem(i), Node.NIL);          //iterate through the original list and create a next node         if (i>0) {             for (int k=i; k>=0; k--){                 if (k<=0)  {                     next = NIL;                 }                 else {                     next = new Node(nthItem(k-1),next);                 }                            }         }          //debugging in console         System.out.println("final node = " + next.item+" ");         return node;     } }  class Test{      public static void main(String[] string){         Node n = new Node(1, Node.NIL);         Node nn = new Node(2, n);          Node r = nn.reverse();          System.out.println("\t item " + r.getItem()+ " " + r.getNext().getItem() + " length " + r.length());     } }


I have three location points with weather data. It's a 10-year composite of temperature values which means I only have three values for three locations for ten years. The distance between points is approximately 100 kilometers.  I want to interpolate these points to create a temperature map for the area. So, which method should I use and how?


Why generalize the derivative for multivariable functions?

Sorry if this is a dupe (did a search, couldn't find anything).  In single variable calculus, if the following limit exists:  $$\lim_{h\rightarrow 0}\frac{f(x+h)-f(x)}{h},$$  then this expression itself is the derivative of $f$ at $x$. This is nicely motivated geometrically and otherwise. This definition gives of $f'(x)$ which gives the best linear approximation $\tilde{f}$ to $f$ at $x$ by  $$\tilde{f}(t) = f'(x)t + f(x).$$  For functions of several variables, most of the time I see the derivative defined in terms of the best linear approximation to the function explicitly. Specifically, the derivative of a multivariable function $g$ at $\mathbf{y}$ is some linear operator $L(\mathbf{y})$. Concretely, if the following expression is satisfied:  $$\lim_{\mathbf{h} \rightarrow 0}\frac{\|g(\mathbf{y} + \mathbf{h}) - g(\mathbf{y}) + L(\mathbf{y})\|}{\|\mathbf{h}\|} = 0,$$  then $L(\mathbf{y})$ is the derivative of $g$ at $\mathbf{y}$. We can show that $L(\mathbf{y})$ is unique in this case.  My question is why is this generalization necessary? What is the problem with simply defining is analogously to the single variable case as  $$L(\mathbf{y}) = \lim_{\mathbf{h} \rightarrow 0}\frac{g(\mathbf{y} + \mathbf{h}) - g(\mathbf{y})}{\|\mathbf{h}\|}?$$


Show banner rather than having Create Tag info button go missing when user has 5 pending suggested edits?

At GIS, which I moderate, we have a Meta Q&A about  and I think the issue being discussed will be common to all sites.  When our user is editing tag wikis they are sometimes not provided with the Create Tag info button.  It seems like this is due to them encountering  and in particular the limit of:     at-most 5 pending suggested edits per editor on graduated sites   Assuming that our analysis is correct, when an editor already has 5 suggested edits in the review queue, would it be possible for the tag wiki page to show a banner like this?     You are currently unable to suggest edits to tag wikis because you   already have 5 suggested edits awaiting review.   I think that would be better than the Create Tag info button simply going missing.


Why is the naive notion of a product ideal not necessarily additively closed?

Considering the product ideal $IJ = \{ \sum_{i=1}^n a_ib_i | a_i \in I, b_i \in J \forall i\}$, I've always seen it written that the more naive notion $IJ = \{ ij | i \in I, j \in J\}$ is not an ideal because in general it is not additively closed and is thus not a subring. I am unable to come up with a proof or any examples.   Any ideas?


I'm gonna conclude that a tautology always a valid argument.  In one hand, by the definition of validity, the conclusion must be true if all of the statements in the argument are true.  On the other hand, an argument is tautology when it's always true, regardless the truth or falseness of its promises.  As an instance x=x is tautology, then it's valid, too.  Am I right by above argument?


Every electric motor I know, takes electricity and converts it over a magnetic field, for generating movement.   Is it possible to generate significant movement, based only only on electrons movement?


Show that $$\frac1{1\cdot2}+\frac1{2\cdot3}+\frac1{3\cdot4}+\cdots+\frac1{(n-1)\cdot n}=\frac{n-1}{n}.$$   I’m having a really hard time with this question - I can’t start it with one because you can’t divide by zero, and as I go further along I still am struggling. I started with two, so I did the base step, and the induction hypothesis step, how do you prove that K+1 is true? How do I do this process and what’s the answer?


Real Analysis of Bounded Sequences in a Closed, Bounded Interval

A sequence is defined to be bounded provided there is a positive real number M such that |an|< M for every natural number n. I need to prove that {an} is bounded if and only if there are real numbers a and b with a < b such that {an} is a sequence in [a, b]. So far I have been unable to produce a formal proof. Please help.


Correct way to write this compound possessive?

The scenario is that both Alex and Yuval need to review the pull request. What is the correct way to write it in English?   Pull request awaits Alex and Yuval reviews. Pull request awaits Alex's and Yuval's reviews. Pull request awaits Alex and Yuval's reviews.   The preference on  seems to be the last option, but logically, shouldn't the second option be preferred (as Alex and Yuval play the same role).


When you plant bookcases near an enchanting table, it increases its power because of magics.  What does this actually mean when I go to enchant items?  If I have more bookcases will my enchantments, other things equal, be better, or does it just raise the limit on possible enchantments?  And more nitpicky, what about the "between" cases: There are overlapping ranges where you can get (for example) Sharpness II and III (lets pretend 15-18).  If the presented enchantments were between 15 and 18 levels, would it be impossible to get III without X bookcases?


In English we have some phrases like:  Make like a banana — and split  Make like a tree — and leave  With these kinds of phrases sometimes the second part is left unsaid; if you say, "make like a banana," the person listening most likely knows the second part (or ending).  Is there an official term for these kind of phrases?  Or are these just "make like a"-jokes?  Are there phrases with the same pattern but aren't "make like a"-jokes?


How to create a file root user can't delete

On Linux systems, I have a file I want to preserve from (even accidental) deletion. How can I create a file even the root user can't delete?  For instance, by trying:  # touch file # chmod 000 file # chown <somebody>:<somebody> file # rm file   root user is able to delete the file (through the last command).  How can I avoid root user to (even temporary) delete the file?


How javascript function stores parameters?

I'm new in JS and quite confused about the following code:  HTML  <button id="btn0">Click Me</button> <button id="btn1">Click Me</button> <button id="btn2">Click Me</button>   JS version 1  var test = {     clk: function () {         for (var i = 0; i < 3; i++) {             this.setup(i);         }     },     setup: function (data) {         var btn = document.getElementById("btn" + data);         btn.onclick = function () {             test.show(data);         }     },     show: function (data) {         alert(data);     } } test.clk();   If I run the program and click the 3 buttons, then they show each value of data they kept which are in turn 0, 1, 2  However, if I change the JS code to:  var test = {     clk: function () {         for (var i = 0; i < 3; i++) {             var btn = document.getElementById("btn" + i);             btn.onclick = function () {                 test.show(i);             }         }     },     show: function (data) {         alert(data);     } } test.clk();   Run and click the 3 buttons, then all give the same result of 3? how come the result of 3? How come each does not give 0, 1, 2? How is the JS version 1 different from the version 2?  I come from Java background, and all I thought was when the 3 buttons are clicked, all would give the result of 2?


Analyzing the log backups to understand the pattern

I am not sure if my understanding is correct on this behavior of log backups.  We believe the increase in traffic, as log backups have increased after migration event to cluster from stanadlone SQL 2012.  Per the monthly analysis of log backups running every 10 mins, in a day for an avg i calculated the log backup size to be 400-450 GB. Now post migration, its been week and i can see that log backup size has increased to an avg of 650-700 GB in a day.  App says there is no increase in volume, so i am wandering why there is sudden increase in log backups.  Log file is same before and after =200 GB and VLF's 300.  Database is 10 TB on SQL server 2012 and many a tables are partitioned.  Let me know if there is further details needed to understand this behavior? Or is there another way to analyse this? Please suggest


Is there a native terminal in OS X, without having to load the desktop, window manager, etc?

FOr example, in linux you can boot to a terminal, you don't have to load a desktop, window manager, etc. Is there something like this in Mac OS X? And like in Linux, is it possible to switch to one of these from in the desktop?


How can I remove the comma between volume and number in the IEEEtr.bst file

I just started modifying my ieeetr.bst file.   I was able to switch first and last name for my (journal article) authors in the bibliography. I also wanted to display the Volume and Issue number as 1(1) and not vol. 1, no. 1. So far I only got to 1, (1).  Any ideas how I can get rid off the space and comma?


Warining "system is computationally singular: reciprocal condition number = 1.49911e-34FALSE" when running zeroinfl()

I am using the pscl package to run a zero inflated estimation, however when I do I get the following warning: zeroinfl(count ~ origin + type, data = glm_df, dist = "poisson")     Warning message:     In value[[3L]](cond) :       system is computationally singular: reciprocal condition number = 1.49911e-34FALSE  From reading around it indicates either my design matrix can't be inverted (but I am not really sure what that means), but it is caused by covariance of my variables? Or my data is not able to support the model. What does this mean and indicate and how can I debug it?


How to rotate video that comes from android device with same quality by using ffmpeg

I want to rotate video that comes from android device that always display in landscape form; so how we convert into portrait form with a same quality. I am using these code but unable to find exact code.  $ ffmpeg -i $inputfile -vf "transpose=1" $outputfile $ ffmpeg -i $inputfile -acodec copy -vcodec copy -vf transpose=1 $outputfile   Not worked for me...


So I have two IP addresses - one is on my network settings and is 192.168.0.X. Another one - I checked this address online - is 108.X.X.X. What's the difference between these two IP addresses? Does it have something to do with local vs internet IP addresses? Can someone please explain these two concepts?


Converting special characters from user input -- alternative to htmlspecialchars?

As always, there are very similar questions on here but none quite applies to my context.  I have text coming from a textarea on a different page. I need to scan it for special characters, and assign it to a new string before inserting it into my SQL database. This was what I thought would work, but it seems to to absolutely nothing (the code still works, but the special characters remain).  $info = htmlspecialchars($_POST['info']);   The text could contain just about anything in the way of special characters (in particular, lots of üèéöàä etc.).


I am working on a game and was going to create a jar file of it to send out a beta version to some of my friends so that I would know how the game looks on different resolutions and how it runs on worse and better computers. The problem is that when I run the jar file it will be completely black and nothing will happen.   I think that I have done the path for the images wrong because if i remove all the images from the net beans folder it will look exactly like when I start the jar. I have done the path for the pictures by just writing their name and having them in the same folder as the classes.   The jar file looks like this: Two folders, META-INF and Apocalypse. Inside META-INF is the manifest file, it looks like this:  Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.4 Created-By: 1.7.0_17-b02 (Oracle Corporation) Class-Path:  X-COMMENT: Main-Class will be added automatically by build Main-Class: Apocalypse.Main   Inside the Apocalypse file is all the classes and all of the images, to give an example of how I get the images in the code I get them like this ImageIcon ii = new ImageIcon("Image.png") I don't have any path to the image  but shouldn't this code work if I have the images in the same folder as the classes? How else would do the path to the images (if it is them that is the problem)?


How to call a template class from a Qt designer class

I have created a template class as following. I am new to this template concept.  template<class T> class tem_class {  private:     T obj; public:     tem_class();     void set_values(T x);     T disp_fun();  };   Then I tried to invoke this class in Widget class.  void Widget::on_pushButton_clicked()     {        int a,b;         a=5;         tem_class<int> obj2 ;         obj2.set_values(a);         b = obj2.disp_fun();     }   But I am getting following errors.  error: undefined reference to tem_class<int>::tem_class()  error: undefined reference totem_class::set_values(int) error: undefined reference to `tem_class::disp_fun()  error: collect2: ld returned 1 exit status


Construct a triangle given 2 sides and the radius of the inscribed circle (Euclidean geometry)

How do I construct a triangle when I am given 2 sides and the radius of the inscribed circle. Keep in mind the problem must be solved in euclidean geometry so we assume that we don't know trigonometry other fields of "advanced" geometry.


Filling areas under multiple adjacent curves

I want to shade the area of overlap for adjacent normal curves, shown in the lower graph. I can get shading between the first two curves but not for subsequent curves. I need shading at overlapping areas indicated by the arrows. I applied the "logic" of the first fill for the subsequent curves but that does not work.   The arrows and letters in the example image are not part of the MWE.   \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{ticks=none} \pgfplotsset{compat=1.7}  \usepgfplotslibrary{fillbetween}  \pgfmathdeclarefunction{gauss}{2}{%normal distribution where #1 = mean and #2 = sd}     \pgfmathparse{exp(-((x-#1)^2)/(2*#2^2))}% }  \pgfplotsset{baseplot/.style={%     no markers,      domain=1:4.5,      samples=100,     smooth,     axis lines*=left,     height=5cm, width=12cm,     enlargelimits=upper, clip=false, axis on top,     xlabel = near ticks,     xlabel={Resource} }}  \begin{document}  \begin{tikzpicture}   \begin{axis}[baseplot]   \addplot+[name path=A]{gauss(2.7,0.4)};   \addplot+[name path=B]{gauss(3.2,0.4)};   \fill[gray!20, intersection segments ={of= B and A}]; \end{axis} \end{tikzpicture}  \vspace*{3\baselineskip}  \begin{tikzpicture}   \begin{axis}[baseplot]   \addplot+[name path=A]{gauss(1.7,0.15)};   \addplot+[name path=B]{gauss(2.2, 0.15)};   \addplot+[name path=C]{gauss(2.7, 0.15)};   \addplot+[name path=D]{gauss(3.2, 0.15)};   \addplot+[name path=E]{gauss(3.7, 0.15)};   \fill[gray!20, intersection segments ={of= B and A}];   \fill[gray!20, intersection segments ={of= C and B}];   \fill[gray!20, intersection segments ={of= D and C}];   \fill[gray!20, intersection segments ={of= E and D}]; \end{axis} \end{tikzpicture}  \end{document}


I watch streams sometimes and i see the high elo Ranged AD move between each shot. Do they gain anything with this? And if so whats a good way to practice it.


Alternatives to Ushahidi for Crowdsourcing?

We all know that  offers a versatile solution for crowdsourcing information and its effective depiction in maps.   I am interested to know if there is any application(free and open source) on par with or superior to Ushahidi!   I would be using the application to collect data from users via tweets, web forms, emails, SMS and map them using the location information provided by them; all of which can be accomplished by Ushahidi.   My deployment would be a permanent online deployment to collect ongoing information and not the one which would be live for few days/weeks.   Hence, one of the major limitation I foresee with Ushahidi is the requirement of manual intervention for approval of reports, which may need more personnel in the event of large number of responses.   Is there any possibility to build a custom solution for such purpose using different open source tools?


How do I prove the inequality $H_{2^m}>1+\frac{m}{2}$?

How do I prove that $\sum_{k=1}^{2^m}\frac{1}{k}>1+\frac{m}{2}$?   I have used it in an exercise but I want to know why it is like that.


I made an application with Mono, and I want it is always running. If my application stopped, I need it to automatically start again. Does anyone have solution that would help me?  Also, how do I start an application at startup?


Surface with non-zero mean curvature means orientable

Let $M$ be a surface in $\Bbb R^3$ with non-zero mean curvature for every point. How could I  show that this implies that $M$ is orientable? By our definition, orientable means that an unitary, normal vector can be defined continuously for every point in the surface.  This is a homework question, so just hints would be appreciated :)


Execute multiple command lines with the same process using .NET

I'm trying to execute multiple commands without create a new process each time. Basically, I want to start the DOS command shell, switch to the MySQL command shell, and execute a command. Here's how I am calling the procedure (also below). Also, how do I handle the "\"'s in the command?  ExecuteCommand("mysql --user=root --password=sa casemanager", 100, false);  ExecuteCommand(@"\. " + Environment.CurrentDirectory + @"\MySQL\CaseManager.sql", 100, true);  private void ExecuteCommand(string Command, int Timeout, Boolean closeProcess) {     ProcessStartInfo ProcessInfo;     Process Process;      ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + Command);     ProcessInfo.CreateNoWindow = false;     ProcessInfo.UseShellExecute = false;     Process = Process.Start(ProcessInfo);     Process.WaitForExit(Timeout);      if (closeProcess == true) { Process.Close(); } }


What is the potential harm of using Google's Disavow Links tool?

Google gives a warning on its disavow links tool, that says:     This is an advanced feature and should only be used with caution. If used incorrectly, this feature can potentially harm your site's performance in Google's search results. We recommend that you only disavow backlinks if you believe that there are a considerable number of spammy, artificial, or low-quality links pointing to your site, and if you are confident that the links are causing issues for you.   What exactly is the risk of using this?  If I have a bunch of spammy links that a competitor built, would there be any potential harm of disavowing them?  EDIT: In my particular case, my main site has been delisted from Google's search results, and at approximately the same time, I noticed that I've started getting a lot of spammy links to my site.  No warning has been issued by Google in webmaster tools, but I want to disavow the spammy links anyway.


CPU sitting at lowest clock speed when pstates is disbled

So in order to have more control over CPU with  I need to disable pstates so it uses acpi. Now when I add "intel_pstate=disable" to grub and reboot it boot but stay on ~700MHz frequency when I try to change it via cpufreq gui of via terminal but it doesn't change. When pstates is not diabled I can use cpufreq but only to set to performance or ondemand with it disabled it offers more options but doesn't work. Note in install document it says I should disable pstates. Here is screenshot with pstates disabled.  My CPU is i5 2520m if that matters.


As a GM, can I roll in secret so my players don't even know I rolled?  For example, a PC walks past a secret door; if I ask the player to roll perception he may suspect there is something. Can I roll behind the GM screen for him to see if he passed the check and act accordingly? And I don't mean to hide the result of the roll, but to hide the fact that I rolled at all.  I am playing pathfinder, but this is a general question.


In this answer  , step 3:     Ensure that the radeon module is blacklisted prior to installing the package from AMD.   How can I do that?  Kernel version (output of uname -r to be exact): 4.10.0-26-generic  Ubuntu 17.04


When jumping from the aircraft how do I ensure I travel the maximum amount away from the plane? Should I use a steep angle during free fall or a shallow one?   Should I remain in free fall as long as possible, or use the parachute early, and when using the parachute should I lean forward or not?


In the Chris Medina song "What are words", he sings "what are words if you really don't mean them when you say them?". I am a non-native English speaker, but to my ears that doesn't sound good. Had I written that song, I would have let "really" and "don't" switch places. I discussed this with my wife who insists the meaning would be exactly the same, but in my mind there's a difference.  I feel that "really don't mean them" conveys that the person uttering the words doesn't mean them, with an emphasis. He really doesn't mean what he's saying. The words go against everything he stands for. The other way around, "don't really mean them", to me means that he says something that he could very well stand behind, but in secrecy he doesn't.  Am I correct in asserting the above? If I am, what could be the reason mr. Medina chose this particular wording, as it doesn't fit very well with what the rest of the song lyrics express?


What happens to reputation used for a bounty that was never awarded to another user?

Edit: I need to apologise for this.. I was having a particularly bad week in a string of crappy ones; long story short, I vented in the wrong way at the wrong people. For that I am so very sorry.    So my first experience using the bounty system on SO appears to have resulted in nothing more than me losing half my rep, with no way to recover anything.  I asked a question, which didn't get much attention at all, I added a bounty in the hopes that it might help, and then just as the bounty was ending I worked out the answer to my question and updated it as such.  While the bounty was active, one other user posted an answer with a question because they didn't have enough rep for a comment. They deleted their answer after this and nobody else added any answers.  After the bounty had expired, I added an answer explaining my software issue was caused by an unknown hardware error and marked that as the correct answer.  Now I'm down 400 rotation points (at that point it was more than half of what I had) and there doesn't seem to be anything I can do. Is this now just gone, or is there anything that can be done to restore this?  Suffice to say this is the last time I will ever try use the bounty system; if one of my questions doesn't get enough attention I'll just rephrase it and hope for the best... The concept of losing reputation without it being assigned to anyone else is just plain stupid, simple as that.  There should be a warning before the bounty is enabled to state that it will be immediately and permanently removed from the current users reputation points. I saw no such warning when I used it myself.


as a self-study student I want to know the differences between two language features in c# and c++, I want to know by a simple example if someone know that please share it with me.


How to get Intel Dual Band Wireless-AC 3168 work on Ubuntu 16.04?

I searched many solutions on this site but most of them were referring to Broadcom Wifi drivers while mine has Intel one.   Output of lspci -knn | grep Net -A2  arijit@HP-AU134TX:~$ lspci -knn | grep Net -A2  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10) DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter Subsystem: Intel Corporation Device [8086:2110]   Output of rfkill list  arijit@HP-AU134TX:~$ rfkill list  arijit@HP-AU134TX:~$    i.e No Output  Output of uname -a; dmesg | grep iwl  arijit@HP-AU134TX:~$ uname -a; dmesg | grep iwl  Linux HP-AU134TX 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


Segmenting bibliography based on \addbibresource file

I have a variation of the question  which is about printing all citations from a .bib file sourced with \addbibresource{/path/to/file.bib}.  While there is much info around on segmenting the bibliograpy by type (e.g. article vs book), I would like to segment the bibliography by which .bib file holds the reference. I maintain .bib files for different topics and would like to issue full bibliographies for each of those collections.  I was thinking there might be an option for \printbibliography{} to segment by source (each \addbibresource{} file), but perhaps there is a 'better' way?  Minimal working example, with one list from one file only:  \documentclass{article} \usepackage[american]{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage[T1]{fontenc} \usepackage[     backend=biber,     %bibencoding=utf8,     refsegment=section,     url=false,     doi=false,     style=numeric ]{biblatex} \DeclareLanguageMapping{american}{american-apa}  \addbibresource{biblatex-examples.bib}  \begin{document} \nocite{*}  \printbibliography[title=References in collection X] %, type=article]  \end{document}


Google Search Console reports: "No structured data found on your site" even though the structured data testing tool finds it

I have a website and I am working over its SEO. I have put all required structured data in it as per my knowledge and have also tested it with Google Webmaster's Structured Data Testing Tool and it detects everything fine and all requirements are met.  But back in Webmasters Tools when I go to: Search Appearances > Structured Data it says     We do not detect any structured data on your site.   Structured data helps Google understand the content on your site, which can be used to display rich snippets in search results.   I checked my site with structured data testing tool there are no errors.


Evolution principle of the physical laws

I wanted to know if there is a physical theory that considers that the laws of physics undergo an evolutionary process. That see the law of physics or the absence of them, as something dynamic, and that with time they slowly converge to something we know today. A kind of simulated annealing of the physical laws.


More efficient way to list posts by category

I have a page that lists posts grouped by category. Here is the current code:  <?php  $cats = get_terms('category');  foreach ($cats as $cat) {     $cat_id= $cat->term_id;      echo "
".$cat->name."
";      $custom_query = new WP_Query(         array(             'cat' => $cat_id,             'post_type' => 'my_post_type',             'posts_per_page' => -1,             'orderby' => 'title',             'order' => 'ASC'         )     ); ?>
     <?php if ($custom_query->have_posts()) : while ($custom_query->have_posts()) : $custom_query->the_post(); ?>
<a href="<?php the_permalink();?>"><?php the_title(); ?>
     <?php endwhile; endif; ?>
  <?php } ?>   Is there a more efficient way to do this without so many queries? I found this related question: . However, I'm not sure how to implement Milo's suggestion or if it would be applicable.


Why is this giving me a NullPointerException?

String line = ""; BufferedReader f = new BufferedReader(new FileReader("test.txt")); StringTokenizer x = new StringTokenizer(f.readLine()); int n = Integer.parseInt(x.nextToken()); for(int i = 0; i < n; i++) {     if(line == null)         break;     else         line = f.readLine();      StringTokenizer st = new StringTokenizer(line);      xCoord.add(Integer.parseInt(st.nextToken()));     yCoord.add(Integer.parseInt(st.nextToken())); }   Here's the code. Don't know why I'm getting the exception. I have the while loop set to check if line is null.   File:    5 0 1 5 4 9 8 0 1   Getting the exception at StringTokenizer st = new StringTokenizer(line);  Exception in thread "main" java.lang.NullPointerException at java.util.StringTokenizer.<init>(StringTokenizer.java:199) at java.util.StringTokenizer.<init>(StringTokenizer.java:236) at Problems.ProblemOne.main(ProblemOne.java:45)   Java Result: 1


Extending 'Guess 2/3 of the Average' Game

In game theory, 'Guess $\frac{2}3$ of the Average' is a game where $n$ people are asked to choose a real number between $0$ and $100$ inclusive. The person with the closest answer to $\frac{2}3$ of the average value wins. It can be shown that there is a unique pure strategy Nash equilibrium where everyone picks the number $0$.   (The reasoning is that the desired number can't be greater than $\frac{2}3 \cdot 100$ so everyone picks between $0$ and $\frac{2}3 \cdot 100$. Then iterate.)  Can we generalize this game. Specifically, say that you survey $n$ people who each pick a real number from a set $S \subset \mathbb{R}$. From their responses, you can form a vector $\vec{v}$ where the $i$ th entry is the $i$ th person's response.   Now suppose you have function $f : \mathbb{R}^n \rightarrow \mathbb{R}$ that is known to all of the $n$ people. The person whose value is closest to $f(\vec{v})$ is the winner. What strategy should each of the $n$ people employ?  Can we find essentially different functions and sets such that everyone ends up guessing the same number? For example, we could have chosen a different fraction $< 1$ rather than $\frac{2}3$ but in spirit, this is the same example. There are also examples of functions and sets where everyone does not end up picking the same answer. For example, if we restrict the people in our example above to choose only integers, then the strategy is pick $1$ or $0$ depending on what you think the majority of the people will pick.


Posting article/tutorial on StackOverflow

I know SO allows to share knowledge Q&A style. Do you think it is a suitable place to write a tutorial? I tried searching for similar questions, but the answers were not conclusive. I am struggling with creating ASP.NET MVC 6 app with Angular2. There are blog posts about this, but they don't cover latest Angular2 RC release, which changed things a bit. I have it almost figured out, so I thought of sharing my knowledge. I do not own a blog and there is no point in starting one since I don't know when I'll have something else to share with the community. Do you think it would be ok to write an article explaining in details how to setup ASP .NET MVC 6 project with Angular2 RC on StackOverflow?


i'm writing an equation. I noticed that when I enter the \underbrace command, the square brackets increase their size giving an unpleasant visual result. could you suggest a solution? \documentclass{article} \usepackage{amsmath} \usepackage{mathtools}  \newcommand{\medv}[1]{\left \langle\,#1\,\right \rangle} \newcommand{\de}{\,\mathrm{d}} \newcommand{\Int}{\displaystyle\int} \newcommand{\Intlim}[1]{\displaystyle\int\limits_{#1}\hspace{-.3em}}  \begin{document} \begin{center}     \begin{minipage}{.55\textwidth}         \begin{equation}             \begin{split}                 \medv{D_{T_z} C_{,z}}_{\!,z}                 &= \left[\frac{1}{h}\underbrace{\int\limits_{0}^{h} (D_{T_{z}} C_{,z}) \de{z}}_{1}\right]_{\!,z}\\                 &= [\frac{1}{h}\underbrace{\int\limits_{0}^{h} (D_{T_{z}} C_{,z}) \de{z}}_{1}]_{\!,z}\\                 &= \frac{1}{h}\underbrace{\int\limits_{0}^{h} (D_{T_{z}} C_{,z}) \de{z}}_{1}\;_{\!,z}\\             \end{split}         \end{equation}     \end{minipage}\hfill     \begin{minipage}{.45\textwidth}          \begin{enumerate}             \item bla bla bla             \item bla bla bla          \end{enumerate}     \end{minipage} \end{center} \end{document}


Rookie Question! I have a shapefile in QGIS 1.8.0 of a country with 20000 divisions. I need the area of each division, but this is not a given attribute. When i click on a district, the "Identify Results" panel shows a "Derived" value for the area of each district along with the feature id. Can somebody tell me how I could extract these area values to a data file? Thanks!!


Found lots of these insects on my study desk today. What are these?

I came home today, switched on the lights and saw many of these running around my study desk. Any help in identifying these little insects? The picture is zoomed in so it doesn't really do justice to how tiny it is. Approximate Size: 1mm Location: Mumbai, India What are these insects ? How do I get rid of them ?  Additional Images:       Any help in identifying these is really appreciated. We are freaking out crossing our fingers that it is not bedbugs. What are the chances these are baby bed bugs?


Fail to install Realtek Wi-Fi driver rtl8821AU

I've done a clean install of Ubuntu 18.04.3 LTS. I'm trying to install a wi fi dongle to get internet access. The installation fails:  yoav@yoav-System:~/Documents/LINUX/Linux$ sudo chmod +x install.sh yoav@yoav-System:~/Documents/LINUX/Linux$ ./install.sh ################################################## Realtek Wi-Fi driver Auto installation script Novembor, 21 2011 v1.1.0 ################################################## Decompress the driver source tar ball: rtl8821AU_linux_v4.3.19.5_17672.20160506_BTCOEX20150921-58.tar.gz . . . rtl8821AU_linux_v4.3.19.5_17672.20160506_BTCOEX20150921-58 Authentication requested [root] for make clean:   And it won't accept my password.  Edit: Tried sudo ./install.sh  yoav@yoav-System:~/Documents/LINUX/Linux$ sudo chmod +x install.sh [sudo] password for yoav:  yoav@yoav-System:~/Documents/LINUX/Linux$ sudo ./install.sh ################################################## Realtek Wi-Fi driver Auto installation script Novembor, 21 2011 v1.1.0 ################################################## Decompress the driver source tar ball: rtl8821AU_linux_v4.3.19.5_17672.20160506_BTCOEX20150921-58.tar.gz . . Authentication requested [root] for make clean: bash: make: command not found Authentication requested [root] for make driver: bash: make: command not found ################################################## Compile make driver error: 127 Please check error Mesg   Regarding using sudo -i. Command Dir produces nothing under root0@yoav-System:~  I have no idea how to navigate to the directory where the install.sh file is.  Edit 2: Tried to install build-essential package: sudo apt-get install build-essential  Reading package lists... Done Building dependency tree        Reading state information... Done Package build-essential is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'build-essential' has no installation candidate   Does apt-get requires to be online? I am offline until I manage to install this driver.


Why didn't Voldemort have the prophecy broken to listen to it?

Towards the end of 'Order of Phoenix', it is revealed that Lord Voldemort is trying to steal the prophecy regarding him and Harry from the Ministry.  The book mentions the accessibility rules of the prophecy orbs in two places:   Only people the prophecy is about can lift it from the shelf If anyone else tries, they go mad.   But later, we see orbs falling off the shelves as curses hit them. This means that either they aren't magically impossible to dislodge by others, or the curses break the magic if they are.  Moreover, when they break, a ghostly shadow appears and recites the prophecy.  Since Voldemort aim was to hear it once, not preserve it, why didn't he simply had the prophecy orb broken. (Even if he couldn't be there in person, there are surely other ways in the magical world to listen. Sirius's two-way mirror comes to mind. And this is the (2nd?) greatest wizard alive we're talking about. Who had for almost a whole year to try new things.)  The only answer I could come up with is that Voldemort wasn't aware what would happen if the prophecy orbs got broken. But I'm not sure about that.  Is there any canon explanation?


The  exploded during the . The  exploded during the .  What is the total number of people killed on the 2 Death Stars when they exploded?


What is the meaning of the notation $\mathbb{C}^\times$ where  $\mathbb{C}$ is the usual set of complex numbers? The context is that of continuous functions of the torus $\mathbb{T}=\mathbb{R}/\mathbb{Z}$ that are  $\mathbb{C}^\times$-valued.


A polynomial with a root in $\mathbb{F}_p \ \forall p$, where $p$ is prime, but no root in $\mathbb{Z}$

Give an example of a polynomial $f(x) \in \mathbb{Z}[x]$ which has a root in every finite field $\mathbb{F}_p$, but no root in $\mathbb{Z}$.


Beginner question. Adding multiple colors to object in blender 2.8

I can see how to add one base color to an object Edit mode > material > base color but how do you add multiple colors or assign each face(s) it's own  color in that same object in 2.8?  Thank you


I am working on a multi-chaptered document, tied together with a main tex file that pulls the chapters in via \include. To build the entire document, in its current draft form, can take upwards of 15-20 minutes, depending on the machine I am working on. I am wondering if there is a way that I could choose to typeset only one  specific chapter at a time without having to restructure my whole setup. Any ideas?


What is an appropriate way to indicate a previously asked question needs to be readdressed?

I'm about to use a specific example to highlight a general question  I recently posted an  to   That question was originally asked, and a best-answer chosen, in 2009.  A lot of time has passed and while I believe the question is still relevant and should be asked again today, the answers are now obsolete.  Others have tried to ask the same question because the issue needs to be readdressed.    (2009)  (2011)  (2013)  (2013)  (2013)  (2013)  (2014)  (2014)  (2018)  (2018)   All in all, there are 36 questions linked back to that 2009 original (and I haven't tried to count the number of questions linked as duplicates to those 36...).  It appears to me that this is an issue that needs to be readdressed.  Question: What is the proper procedure for identifying any previous Meta question that should no longer be automatically used as a VTC:Duplicate target but, instead, should be legitimately re-considered?


TikZ: decoration - random steps: how to get twice exactly the same shape?

I'm creating a beamer presentation, in which I use TikZ.  I am making a figure, on which I would like to highlight something (using \only<> command). My figure contains an ellipse that is decorated with random steps:  ... \node[ellipse,minimum width=1cm,black!30,decorate,decoration={random steps,segment length=0.2cm,amplitude=.1cm}] {};  \only<1>{ \node (n) at (0,0) {A}; } \only<2>{ \node (n) at (0,0) {B}; }   The ellipse is rendered in differenlty. How can I make it to render the same? or what other decoration can I use to get a similar effect to random steps?


I tried this one from google sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.6  But the problem is in add-apt-repository it shows   Note: Python2.7 (all), Python 3.5 (xenial), Python 3.6 (bionic), Python 3.8 (focal) are not provided by deadsnakes as upstream ubuntu provides those packages.   And while installing it shows error Err:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu groovy Release 404  Not Found [IP: 91.189.95.85 80]  And when I try the sudo apt install python3.6. It shows the following error Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package python3.6 E: Couldn't find any package by glob 'python3.6'  How can I install from upstream ubuntu? I had no problem installing python 3.6 on ubuntu 20.04 last time.


i have a question. I am using bibaltex to create a bibliography, or rather I try to use it. This is what i have:  \usepackage{biblatex} \addbibresource{main.bib} \begin{document} Text\cite{"Bibtexkey"} \printbibliography \end{document}   I dont get any errors. The bibtexkey appears, where i wrote \cite... (actually a number should appear), but no bibliography.   Can anyone help?  Best Roy


Proving divergence of $\sum_2^\infty{(-1)^n}{1\over \sqrt n+(-1)^n}$

Q: Is $\sum_2^\infty{(-1)^n}{a_n}$ convergent? $$a_n={1\over \sqrt n+(-1)^n} \space \forall n\in\mathbb{N_{\ge2}}$$  The answer says it diverges.The only thing I could deduce is that the series is not absolutely convergent by comparison test.I  tried to find a smaller diverging series but failed miserably.I guess only thing that can be done is to show the series doesn't meet the Cauchy criterion but the difference of two partial sums looks horribly refractory to me.


I'm having a small code to compare the run time between insertion sort and merge sort - somehow merge sort takes a longer time than insertion sort. Did I do something wrong in the sorting process? Insertion sort takes about 5000 milliseconds and merge sort takes about 9000 million seconds...which I actually expect to be the reverse (merge sort time < insertion sort time). import java.util.*;  public class Main {     private static Random random = new Random();     public static void main(String[] args){         int[] array1 = new int[100000];         int[] array2 = new int[100000];         for(int i = 0; i < 100000; i++){             array1[i] = random.nextInt();             array2[i] = random.nextInt();         }         long startTime_insertion = System.currentTimeMillis();         insertionSort(array1, array1.length);         long endTime_insertion = System.currentTimeMillis();         System.out.println("The insertion sort time is " + (endTime_insertion - startTime_insertion) + " milliseconds.");          long startTime_mergesort = System.currentTimeMillis();         mergesort(array2, 0, array2.length-1);         long endTime_mergesort = System.currentTimeMillis();         System.out.println("The merge sort time is " + (endTime_mergesort - startTime_mergesort) + " milliseconds.");     }          public static void insertionSort(int[] array, int lengthArray) {         int i, j, temp;         int n = lengthArray;         for (i = 1; i < n; i++)         {             temp =array[i];             j = i - 1;              while (j >= 0 && array[j] > temp) {                 array[j + 1] = array[j];                 j = j - 1;             }             array[j + 1] = temp;         }     }          public static void mergesort(int[] array, int left, int right) {         if (left < right) {             int mid = (left + right) / 2;             mergesort(array, left, mid);             mergesort(array, mid + 1, right);             int A[] = Arrays.copyOfRange(array, left, mid + 1);             int B[] = Arrays.copyOfRange(array, mid + 1, right + 1);             int mergedArray[] = binaryMerge(A, B, A.length, B.length);             int i = left;             int j = 0;             while (j <= right - left)                 array[i++] = mergedArray[j++];         }     }          private static int[] binaryMerge(int A[], int B[], int lengthA, int lengthB) {         int lengthC = lengthA + lengthB;         int C[] = new int[lengthC];                  int a = 0, b = 0, c = 0;                  while (a < lengthA && b < lengthB) {             if (A[a] < B[b]) {                 for (int i = 0; i < lengthA; i++) {                     C[c] = A[a];                 }                 a++;             }             else {                 for (int i = 0; i < lengthB; i++) {                     C[c] = B[b];                 }                 b++;             }             c++;         }         while (a < lengthA) {             for (int i = 0; i < lengthA; i++) {                 C[c] = A[a];             }             a++;             c++;         }         while(b < lengthB){             for (int i = 0; i < lengthB; i++) {                 C[c] = B[b];             }             b++;             c++;         }         return C;     } }


Standard Bibtex example code does not work

I am new to Latex and I am trying to incoorperate references/bibliography in my document. First I want to get the code working that I got from here   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib}{} \bibliographystyle{plain} \end{document}   The .bib file is as follows  @misc{ Nobody06,    author = "Nobody Jr",    title = "My Article",    year = "2006" }   This doesn't work. It doesn't show my list of references and when it should cite  ~\cite{Nobody06}   then it just displays     [?]   If have read that this has something to do with bibtex not running the right files. I should see this in my blg file. But I have not been able to find my blg file yet.  It's probably a super simple solution but I haven't found it. I am using TexWorks and MikTex.   Thank you for your help


Caught Pokemon doesn't appear in storage after game crash

I was catching a Caterpie, but my game crashed after 'Gotcha!' appeared (little pokéball spinning at the top left), so I killed the app and launched it again.  Now despite the 'Gotcha!' message, I cannot see the Caterpie in the list of Pokémon I've caught recently (the last one was a Weepinbell). I'm level 12 and this is the second time that this has happened.  I was using WiFi with my Sony C4 (Android). As far as I know, my WiFi is working fine and I don't have any GPS problems.


I was tring to install eclipse on ubuntu. What I did: I unzipped the tar archive of eclipse. I tried to start eclipse from the command line - like this - ./eclipse. It works. But then I tried to create a desktop icon with: gnome-desktop-item-edit ~/Desktop --create-new. In a new icon I showed the path to the eclipse executable which I could launch from the command line. But then eclipse does not start stating:  A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /home/artem/eclipse/jre/bin/java java in your current PATH   The same message appears if I try to launch eclipse by double-clicking its original launcher. So it starts from the terminal but not from the desktop (it does not start when double-clicked) And also I get a message in the terminal (at some stage it appeared):  (gnome-desktop-item-edit:8998): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.DSV8LW': No such file or directory   I am using Ubuntu 12.04 x32 and eclipse Juno.  PS. PATH variable points at jdk/bin and JAVA_HOME - to the jdk folder PSS. I actually set the environment variables through .bashrc file(JAVA_HOME and PATH)


Why won't this function update the variable?

I saved my variables into a string of data, and then tried to convert those string back into the variables like the following:  using System;  public class Program {     static int pop;     static string[] log = new string[10];     public static void Main()     {        string abc = "5 6 10 345 23 45";        log = abc.Split(' ');        Conv(3,pop);        Console.WriteLine(pop); // expected result: pop == 345     }     static void Conv(int i, int load)     {        if (log[i] != null){ load = int.Parse(log[i]);}     } }   Pop should be 345, but return 0 instead. There is no problem when using pop = int.Parse.log[i]


How Meta Stack Overflow is different with Meta Stack Exchange

If I have a question like," How does XYZ work? ", Where should I ask or post this question?  I was bit confused as in stack overflow and stack meta exchange, both are having same hint in ask question text box.


Word meaning something is technically accurate but overly simplistic

I am trying to think of a word used to describe someone who is intentionally oversimplifying an argument by making a statement that is technically true, but ignores a lot of issues. Its an adjective similar to describing the person as being intentionally obtuse or too clever for their own good.


How to summon a baby villager in Minecraft Bedrock Edition?

I want to summon a baby villager in Minecraft Bedrock Edition, but my command isn't working because it summons a regular villager instead of a baby villager. I used the commands based off of  post, which is listed below, but it doesn't work. /summon villager ~ ~ ~ minecraft:entity_born


How do I compensate for the sun confusing my garage door opener's sensors?

Only during summer and only when the sun is close to the horizon the light from the sun confuses my garage door opener and in order to close the door I have to hold down the wired button which is a real pain if I'm leaving.  A friend suggested I use toilet paper rolls (or maybe some PVC) to shield the sensor from the sun and direct the beam to the other sensor and that's a good idea but it'll mean I have to change how the sensors are mounted to the track and move them out a bit.  Just moving them back might solve the problem (since they'll be blocked by the walls).  Any other suggestions? Is this a common problem?


Transforming geometry coordinates from SRID 4326 to SRID 3011

In SQLServer geometry field, I want to change the coordinates of geometry from one spatial reference system to another spatial reference system (from SRID  to SRID ) by using ST_Transform. But the destination SRID 3011 is not available in sys.spatial_reference_systems table.   How I do this conversion? Is there any other way?


Not all tags are shown when trying to edit a post

When trying to edit , the tag line becomes this:  Where two and a half tags are hidden, and it is impossible to get the two leftmost ones to show. The same happens when I try to use edit instead of edit tags, and at least  has the same issue. My operating system is Windows 7, browser is Firefox 37.0.1.


What's the difference between these two calls to `du -sm`?

I have a directory that I want to find sizes on. When I run the two following commands, I get very different results. I expect the second to produce results like the first. Any ideas why?  $ for d in `echo *`; do du -sm $d; done 5649    archive 2055    archive.git 426     filtered 65      filtered.git 14      filtered.git.bfg-report $ du -sm * 5649    archive 1       archive.git 426     filtered 1       filtered.git 14      filtered.git.bfg-report


A be a $3\times 3$ matrix over $\mathbb {R}$ such that $AB =BA$ for all matrices $B$. what can we say about such matrix $A$

Let $A$ be a $3\times 3$ matrix over $\mathbb {R}$ such that $AB =BA$ for all matrices $B$ over $\mathbb {R}$ then what can we say about such matrix $A$.  or such matrix $A$ must be orthogonal matrix? Can we say anything about its eigen values?  I tried by taking random examples also tried to construct such $3 \times 3$ matrices. But i am not able to get any proper conclusion and proof.


Find the thousandth digit after the decimal point of $\sqrt N$ if N-

Let N be a positive integer with 1998 decimal digits, all of them 1,that is- $$N=1111......11$$ Find the thousandth digit after the decimal point of $\sqrt N$


Military member asks me if she can have money wired into my bank account but needs my social security number and bank routing number

I was recently talking to someone online and she said that she was in the Army and then she went on to tell me that she had a lump sum of 45,000$ co.i g to her but she needed my bank account routing number, asked for my social security number, and then told me that she was going to have the Army wire me the money into my account now my question;     Is this a scam?


Changing the game's text language to English

In the answer to , I was advised:      Yes you have to download the language pack. And you also have to go here: C:\Program Files (x86)\Origin Games\Dragon Age Inquisition\Data\Win32        In the folder loctext leave only the files en.sb and en.toc present, put the others in a folder named temp.   In the folder locfacefx make a copy of en.sb_DiP_STAGED and en.toc_DiP_STAGED, rename them to en.sb and en.toc. place the other language files into a temp folder   When I started the game the language was changed also into the interface. Take notes on what you have done and keep the original files in case something doesn't work, but for the moment that seem to work."   I have no en.sb_DiP_STAGED and en.toc_DiP_STAGED files in my Origin version of the game.


Is there a unix command to output time elapsed during a command?

I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those sub-commands start running) it would be really great to be able to tell after what number of seconds (or milliseconds) a specific sub-command started running.  When I say sub-command, really the only way to distinguish these from the outside is anything printed to standard out.  Really this seems like it should be an option to time.


Why does connecting to my work VPN cause my internet to not work?

I VPN to my work, and then I terminal server into my computer.  Everything works fine in relation to the VPN access, but locally I can't access the internet.  How can I fix this?


Is there any objective benefit to escape sequences over tput?

In people's '.*rc' files I see online or in various code, I tend to see a lot of people who manually use ANSI escape sequences instead of using tput.  I had the understanding that tput is more universal/safe, so this makes me wonder:  Is there any objective reason one should use escape sequences in place of tput?  (Portability, robustness on errors, unusual terminals...?)


Shrink Tempdb log file when reaching a specific size

how I can shrink tempdb log file when reaching a specific size?? I'm scheduling job to shrink tempdb but still I face a problem of disk space due to tempdb is full!


My lines are too long. I want to break them. How should I do this? this is how I am doing it now   \tikzset{block/.style={draw,fill=blue!60,minimum width=1.1 em, minimum height= 1em, rounded corners= 4pt}} %\centering \begin{figure}[h] \fcolorbox{blue}{white}{ %\centering \begin{tikzpicture}[remember picture] \draw[help lines](-2,-1)grid(4,2); % shows background  \coordinate  (origin) at (0,0); \coordinate  (text1) at (1,1);  \node at (origin) {*}; \node at (text1) {\mytikzmark{block5}{\textcolor{blue}{function}} \mytikzmark{block6}{[x,y,z]} = \mytikzmark{block7}{\textcolor{red}{funName}}( \mytikzmark{block9}{\textcolor{green}{in1},\textcolor{green}{in2})}};  \node at (-1.5, 0) (block2) {\textcolor{blue}{Must have the reserved word function}}; \draw[blue,->] (block2) -- (block5); \node at (0, -1) (block3) {If more than one output, must be in brackets}; \draw[black,->] (block3) -- (block6);  \node at (3, -0.5) (block4) {\textcolor{red}{Function name should match MATLAB file name}};     \draw[red,->] (block4) -- (block7);  \node at (3.5, 1.5) (block8) {\textcolor{green}{Inputs must be specified}};     \draw[green,->] (block8) -- (block9);     \end{tikzpicture} } \end{figure}   this is what I'm trying to get


Do effects that give +1/+1 counters restore those counters after they're removed?

Say you have a creature A that gives your creatures a +1/+1 counter, and a creature B you control with that counter on it. If that counter on B is removed, does A restore the counter on the following turn?  For example,  (creature A) is on the battlefield (giving all non-humans +1/+1 and Undying), and  (creature B) enters the battlefield (with 5 +1/+1 counters) and gets the counter from Mikaeus. When a spell is played, a counter is removed from Noosegraf and I put a 2/2 zombie onto the battlefield. In my following turn, is the counter from Mikaeus put back onto Noosegraf Mob?


I like the new search, but the listing can become quite verbose. That is generally excellent because Stack Exchange is searching in more places. But now that you  to the original question, it becomes quite difficult to remember "that's not the question(s) I want … that's not the question(s) I want" when the questions' answers appear dozens of times scattered throughout the listings.  Why not group same-question entries together in the search results?  I realize that each individual post wont be sorted strictly "by relevance", but the most relevant question threads will be listed first… making it easier to skip over those entries once you decide that's not the question you're looking for.  Consider what we have now —  Apple SE > Search "Exchange contacts"   A: Exchange contacts do not appear in iCloud A: Exchange contacts do not appear in iCloud Q: iPhone Contact Sync A: How to use Gmail contacts on an iPod Touch A: Exchange contacts do not appear in iCloud A: Exchange contacts do not appear in iCloud A: How to use Gmail contacts on an iPod Touch A: Exchange contacts do not appear in iCloud A: Exchange contacts do not appear in iCloud A: iPhone Contacts Sync Q: Best way to transfer iphone contacts away from Exchange server Q: Can I use Google's new CardDAV-based contacts sync to sync between my Exchange contacts and … A: How to delete contacts from iPhone? A: Can I use Google's new CardDAV-based contacts sync to sync between my Exchange contacts and … : etc, etc. :   Once I realize I don't want that iCloud question… or that iPod Touch question… or that sync question — or a dozen others — it becomes extremely cumbersome to remember and search the listings for questions I didn't eliminate yet.  I'm not suggesting rolling up the results back to the original question… just grouping these posts together (I like seeing each answer-match with the text excerpt underneath). But once I eliminate the question entirely, it would be nice to scroll past those entries to continue my search… without all the noise of those entries reappearing over and over again in the search results.


Prove that $2\sqrt{pq}$ is irrational, with $p$ and $q$ being primes and $p \neq q$

I'm trying to prove that $2\sqrt{pq}$, with $p$ and $q$ primes and $p \neq q$, is irrational. I have something like this: Let's suppose that $2\sqrt{pq}$ is rational. Then, we have that $2\sqrt{pq} = \frac{m}{n}$, with $m,n \in \mathbb{Z^{+}}$, and $(m,n) = 1$. Now, I need to prove that $m \neq 1$ and $n \neq 1$. When I try to prove that $m \neq 1$ I get: If $m = 1$, then: \begin{align*} 2\sqrt{pq} &= \frac{m}{n}\\ 2n\sqrt{pq} &= 1\\ \end{align*} This implies $2 \vert 1$, wich is false. Thus, $m\neq1$. But I don't really know how to prove that $n \neq 1$. The most I can get is: If $n = 1$, then: \begin{align*} 2\sqrt{pq} &= \frac{m}{n}\\ 2\sqrt{pq} &= m\\ \end{align*} And this implies $2\sqrt{pq}$ is an integer. But I don't know how to continue after this.


How to choose which FaceTime number to call

I have a friend with two iPhones, two different numbers.  When I call her with FaceTime audio, only phone A rings.  How can I call phone B?  The phones have two separate Apple ID addresses, but they are both set to receive Facetime calls on their 10 digit phone numbers.  I have both numbers listed in my contacts as 'Home' and 'Work' for the same person.