What happens when the shuttercount of my DSLR is too high?

Yesterday I bought my first DSLR, a used Canon EOS Rebel T5 with a lot if accessories. It has been used 15 times, and I think I’m gonna take a lot of pictures with it, but what happens when I take too many pictures? Will the shutter stop working? Could I fix it?


Spatially join points to polygons in ArcGIS Desktop?

I am trying to join a point feature class to a gridded polygon feature class in arcGIS so that all the points are matched to the grid cell that they fall within. I would like to end up with an attributes table that contains the count of points that fall within each grid cell and the average, maximum and stdev value of all the points falling in each grid cell. I have multiple points falling within many of my grid cells.   I thought that this could be achieved by using the 'join' tool in the 'joins & relates' option or the 'spatial join' tool in the 'Analysis' toolbox in arcGIS. Unfortunately, these tools do not give me the output that I am looking for. When I use a point layer with 20024 points as the join_feature, the count column in the output joined feature class exceeds this value (20203). This count column should equal the number of rows in the original point layer.   I had wondered whether the tool was matching points to multiple grid cells if points spanned >1 cell, but apparently points do not have any width associated with them so this cannot be the problem. My grid was created using the 'create fishnet' tool and the boundaries of grid cells do not overlap.


How is Stack Overflow going to handle reputation in the future?

This question is related to the fact that Stack Overflow has a great community that gives insightful answers. Quick.  For many programming topics, I believe the set of all answerable/relevant questions is finite. Because of this the amount of duplicate questions will only increase with time.  It could happen that some day, it will be very difficult to ask a question that has not been answered before.  I don't know what is the influx of users into Stack Overflow, but I assume it is more or less constant, or even exponential. Nevertheless people are born every day, many of them will become programmers, and will end up here searching for knowledge.  One could argue that programming languages get created all the time, and that the problems to solve by programming are endless. Although those two premises are correct, for existing languages acquiring reputation points is still going to be harder.  What I'm trying to say is that reputation points are a finite resource and there's not enough RP for everyone.


I tapped on the down arrow closer to the Add Data bottom but the Add Basemap that appeared could not be selected.


The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name?


I'm a newbie on everything that surrounds astrophotography. I've been reading about the 500 rule and how to avoid star trails. My question is why you divide by the focal length? I mean how the focal length affects the light coming into the sensor and thus having star trails. I know its not an accurate science but I'm just curious.  Thank you :)


When I update the PCB layout from the schematic, it will place some room on the PCB editor for each sheet. How to remove this all in once ? Is there are a way to select them all in once and to delete them?


For a commutative semigroup $S$, define the relation $\theta_n^S\ \ (n\geqslant 1)$ by $$a\theta_n^Sb\text{ if and only if } (\forall x\in S^n) xa = xb. $$   (a) Show that $\theta_n^S$ is a congruence on $S$, and that $$\theta_1^S\subseteq\theta_2^S\subseteq\cdots$$   (b) Show that $\theta_n^S=1_S$ for all $n$ if $S$ is a monoid.      (c)For $n=1,2,\ldots,$ denote $S/\theta_n^S$ by $S_n$. Show that, for all $n\geqslant 2$, $$S_n\simeq S_{n-1}/\theta_1^{S_{n-1}}. $$   How can i solve the second portion of part (a)?First portion of part (a) is easy one for me but i stuck on the second portion. Any help in this regard.


A polynomial is called a Fermat's polynomial...

A polynomial is called a Fermat polynomial if it can be written as the sum of the squares of two polynomials with integer coefficients. Suppose that $f(x)$ is a Fermat polynomial such that $f(0) = 1000$. Prove that $f(x) + 2x$ is not a Fermat polynomial.  What I have done:  Let $p(x)$ be a Fermat polynomial such that $p(0)$ is divisible by $4$. Suppose that $p(x) = g(x)^2+h(x)^2$ where $g(x)$ and $h(x)$ are polynomials with integer coefficients. Therefore $g(0)^2 + h(0)^2$ is divisible by $4$. Since $g(0)$ and $h(0)$ are integers, their squares are either $1 (mod 4)$ or $0 (mod 4)$. It therefore follows that $g(0)$ and $h(0)$ are even. From here, I can not proceed any further. Please help


Need out-of-game solution for spell choice paralysis

I could really use some advice from someone with experience with new players dealing with D&D spell analysis paralysis. I'm about to kick off a second D&D 5e campaign for a set of friends interested in trying D&D for the first time. They've got nearly zero experience with the game, and we're hitting some hurdles I didn't expect. One of these is that two of them are playing classes with spells, and they've ended up with total choice paralysis. Both of them are terrified of choosing the "wrong" spells and keep changing their minds on a practically minute-to-minute basis. (Seriously, the amount of texts I've gotten from each of them...) The difficulty is that it's hard to explain what the spells do or how useful they'll be when your audience has no personal experience with the game. I frequently end up in a circular conversation with a player asking me "how often will I x" where my response is "well...it depends on where you guys take the story" which is basically useless advice. TL:DR; I'd like to make choosing spells more newbie-friendly from the get-go, but I don't know how. I'm particularly looking for out-of-game DM solutions, rather than in-game roleplay ones. For that reason I don't believe  is a duplicate — its answers are focused on giving the players a chance to change their minds later in the game, or offering other during-play ways to trial spells. I'm looking for an up-front solution (if there is one). In response to a comment asking why I'm not looking for "later" solutions; I've already told them if they really hate their spells we can discuss swapping them later. This has had zero impact on their paralysis. If anything, it's made it worse because now spells that they previously (reluctantly) dismissed as undesirable are now contenders again. We've already pushed our game back a week because they couldn't make up their minds and they're threatening to need another week for further thought after I mentioned swapping later. Post Mortem: We managed to hold our session on time, and everyone had a blast. I ended up using a combination of some of the top answers; Based on : I sent both of them lists of their spell options broken down into very basic descriptions. I probably over-simplified some of them and used a lot of incorrect terminology to put them in contexts my players would understand (and left out a few I felt would be useless in our campaign in particular), but it helped them rule out spells they either thought were too complicated to cast, or weren't something their character would like to use. Based on : I also emphasized that every spell would have a use somehow if they were creative about it, and that as a DM I was on their side and would try to accommodate them. I took time to differentiate between in- and out-of-combat spells and explain why having a mix was useful. I also reminded them that I was okay with on the fly switching (one player took advantage of this after deciding Light would be functionally useless in a party where 2/3 have darkvision...) A big thank you to everyone who replied to this question; my best advice to others finding this later is to really sit down and listen to your players; everyone's different and tailoring your responses can help them get past the paralysis faster.


Accurately simulating the lots of dice rolls without loops?

OK so if your game rolls lots of dice you can just call a random number generator in a loop. But for any set of dice being rolled often enough you will get a distribution curve/histogram. So my question is there a nice simple calculation I can run that will give me a number that fits that distribution?  E.g. 2D6 - Score - % Probability  2 - 2.77%  3 - 5.55%  4 - 8.33%  5 - 11.11%  6 - 13.88%  7 - 16.66%  8 - 13.88%  9 - 11.11%  10 - 8.33%  11 - 5.55%  12 - 2.77%  So knowing the above you could roll a single d100 and work out an accurate 2D6 value. But once we start with 10D6, 50D6, 100D6, 1000D6 this could save a lot of processing time. So there must be a tutorial / method / algorithm that can do this fast? It is probably handy for stock markets, casinos, strategy games, dwarf fortress etc. What if you could simulate the outcomes of complete strategic battle that would take hours to play with a few calls to this function and some basic maths?


Why was Cassian ordered to kill this person?

It seems the Alliance general orders Cassian to kill       Galen Erso    even after receiving confirmation that the weapon is complete and has been used to destroy Jedha. Why do this if he knows the weapon is already complete? Surely at that time, it would have been better to take Galen alive if possible so he can give the rebels some info on the weapon?


What is the recommended way to install glibc 2.27 on Ubuntu 16.04?

I tried the following command, but it seems that the package was not found.  $ sudo apt-get install libc-bin=2.27-3ubuntu1 Reading package lists... Done Building dependency tree        Reading state information... Done E: Version '2.27-3ubuntu1' for 'libc-bin' was not found


Show that the sum of zeros and poles of elliptic function is lattice point

I try to solve the following problem:     Let $f$ be an elliptic function with respect to a lattice $\Lambda$. Let $z_1,\cdot,s z_2$ be the zeroes and poles of $f$ inside a fundamental parallelogram $\Pi$, of degree $d_1,\cdots,d_n$. Show that    $$\sum_{k=1}^{n}d_kz_k\in \Lambda$$   (Hint: considering the integral $$\int\limits_{\partial ~\Pi} z\cdot\frac{f'(z)}{f(z)}~\mathrm{d}z$$  I have no clue to prove this with the hint. How to use the hint?  Also, the sum seems like the divisor of $f$. So is this result related to the theory of Riemann surface and even algebraic geometry? Thanks a lot!


left inverse and right inverse of matrices

If $A \in R^{m×n}$ has a left inverse, $A^{T}$ has a right inverse. How I can prove this property? I hope someone can help me.


I have problem with my double arrays. After i run my File i got "null" values.  I do not know to parse this array above.   public class TestDesposit {     public static void main(String[] args) {         double [] rev = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0};         double [] exp = {0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0};          Result res = new Result (exp, rev);         System.out.println(Arrays.toString(res.Resultat()));     } }  public class Result {     double [] mExpenses;     double [] mRevenue;     double [] mResult;      public Result (double[] pExpenses, double[] pRevenue) {         mExpenses = pExpenses;         mRevenue = pRevenue;      }      public double [] Resultat () {         for (int i = 0; i == 12; i++) {             mResult[i] = mRevenue[i] - mExpenses[i];         }         return mResult;     }    }


Let $p_n$ be the n-th prime number, e.g. $p_1=2,p_2=3,p_3=5$. How do I show that for all $n>1$, $p_n<n^2$?


$\lim\limits_{n \to \infty} \frac{a_n}{b_n}=l$ ; Prove $\sum\limits_{k=1}^\infty a_k$ converges iff $\sum\limits_{k=1}^\infty b_k$ converges.

Written, in Ex.8 Ch.9.1 of the book Advanced Calculus by P. M. Fitzpatrick :     Suppose that $\sum\limits_{k=1}^\infty a_k$ and $\sum\limits_{k=1}^\infty b_k$ are series of positive numbers such that $$\lim_{n \to \infty} \frac{a_n}{b_n}=l \ \ \ \text{and} \ l>0.$$ Prove that the series $\sum\limits_{k=1}^\infty a_k$ converges iff the series $\sum\limits_{k=1}^\infty b_k$ converges.   Am I correct by the following (sketch of) proof? :  1- For a given $\epsilon_1$ there is $N_1$ such that $\left|\frac{a_n}{b_n} - l\right| < \epsilon_1$ for all $n \ge N_1$.  2- Since the series $\sum\limits_{k=1}^\infty a_k$ converges, for a given $\epsilon_2$ there is $N_2$ such that $\left|b_{n+1}+\dots+b_{n+k}\right|< \epsilon_1$ for all $n \ge N_2$ any for all natural numbers $k$.  3- Define $N = \max {\{N_1,N_2}\}$.   4- From Step (1), $a_{n+k} < (\epsilon_1+l) b_{n+k}$ for all $n \ge N$ any for all natural numbers $k$. [Also, $a_i$'s and $b_i$'s are all positive]. Thus $a_{n+1}+\dots+a_{n+k} < (\epsilon_1+l) (b_{n+1}+\dots+b_{n+k})< \epsilon_3$. Then the convergence of the series $\sum\limits_{k=1}^\infty b_k$ implies the convergence of the series $\sum\limits_{k=1}^\infty a_k$.  5- For the reverse implication, we use the fact that $\lim\limits_{n \to \infty}\frac{a_n}{b_n}=l \iff \lim\limits_{n \to \infty}\frac{b_n}{a_n}= \frac{1}{l}= l' >0$ and repeat the process this time for a and b exchanged.   6- The Quotient Property For Sequences hold for a nonzero limit in the denominator, but since the limit in the numerator also is zero so we may use the The Quotient Property For Sequences.    Thanks.


How can there be so many zombies in The Walking Dead if they consume live people?

In The Walking Dead, I've noticed that often when a person is attacked by the walking dead, the victim is totally consumed. For example,      Rick's wife was eaten whole by one zombie.    So if they usually consume an entire person (or leave not much left of the original person) how can there be so many walkers? Shouldn't their numbers be smaller because they eat people whole?


If an observer changes their velocity, is it equivalent to a momentum shift?

Suppose we have a world with one massive free particle and one observer. If the observer changes their velocity with respect to the particle, will this have the same effect on $\lvert\Psi(r,t)\rvert^2$ as if $\langle p\rangle$ was changed locally (for example, using compton scattering if we added another particle)?  Part of me says, yes: the "wavelength of $\Psi$" is related to momentum by the de Broglie relation, and momentum is relative (assuming we have just a Galilean transform here).   Part of me says, no: due to the uncertainty principle, the probability of finding a free particle anywhere would seem to be uniform and negligible over all space. From this argument, the wave function shouldn't change, because for a free particle, it wouldn't have a well-defined wavelength to begin with.  I know I'm missing some conceptual connection, because these can't both be true.  I am currently studying an intro QM course, so please take my undergraduate level of understanding into account!


Apt-get update failed due to lack of uncompressed version of "Packages.gz"

Now that the mirrors are not offering the uncompressed version of "Packages", what is the official way to update the system to take into account the compressed version like "Packages.gz"?  W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-amd64/Packages  403  Forbidden [IP: 91.189.91.15 80]   NB: Ubuntu server so no GUI so it's not a duplicate.  Summary: how to make apt-get look for "Packages.gz" instead of "Packages" (note the ".gz")


Joey's and Chandler's coded telephone conversation

In season 1 of Friends, during blackout, when Chandler was stuck in the ATM with a model named Jill, he tried to do some weird voice to let Monica know that he was stuck in the ATM with Jill Goodacre (I am not sure if I have written the surname correct!). When Monica was not able to understand him, he asked to put Joey on the phone and he understood what he said.   After that, Joey told Chandler to do something on which Chandler replied "Like that thought didn't pass my mind". What did Joey tell him?


How does sound change high in atmosphere?

There is no sound in space because there are not enough particles to transmit the pressure wave. But what about really high in the atmosphere where there is just a little air? Would sound move faster, slower or at the same speed? Would the intensity (aka volume) go up, down, or stay the same? And would the frequency go up, down, or stay the same as it traveled through space?


I need to build a main menu that is a subset of the regular menu. The design team thinks it would be better for user to have only the most important links in the main menu and not have everything. Some links are top level menu and some are sub menus. For this I was hoping to be able to add a field to the menu link item form as a drop down. When creating a link the user could use this dropdown to "promoteToMainMenuAsBigLink" or "promoteToMainMenuAsSmallLink" or leave none to not show the item on the main menu.  I'm looking for a similar solution as this  but for Drupal 8.   I was hoping to be able to add a column in the table menu_link_content_data beside 'expanded'. I was hoping not to have to record this information in an other table like shown in the d7 solution.  I was able to add a field to the link form in a custom module I build, just for test purpose I only added a text field to start with:  custom_menu.module:  function custom_menu_form_alter(&$form, FormStateInterface $form_state, $form_id) {   if($form_id == 'menu_link_content_menu_link_content_form') {     $form['promoteToMainMenu'] = array(       '#type' => 'textfield',       '#title' => t('Promote to main menu'),       '#description' => t('Promote link menu to main menu.'),       '#default_value' => '',       '#weight' => -9     );   } }   The field is indeed shown in the link form but it is never recorded.  Can someone help me with this?


System Monitor : How to display net speed on panel

I use system monitor with 16.04 in Unity. Currently, I get all the graphs and text indicator for Disk on top panel. I want to have net speed displayed instead of Disk. How can I do that ?


I have two raster images, Boolean classified (1 or 2).  They overlap in given areas.   I need a raster that is only the overlapping sections.  Using Arcinfo 10.  Answer can only use raster methods, no converting to polygons, points, etc...


Where are user account passwords kept on Debian?

I use Ubuntu 16.04 LTS, and I'm wondering where I can find the hashes for the user account passwords.


A net $\varphi : [0, \omega_1) \to M$ on a metric space $M$ converges $\iff \varphi$ is eventually constant

I want to prove that      If $M$ is a metric space, then a net $\varphi : [0, \omega_1) \to M$ converges if and only if $\varphi$ is eventually constant. ($[0, \omega_1)$ is the set of ordinals less than $\omega_1$, where $\omega_1$ is the first uncountable ordinal, with the order topology).   $(\Leftarrow)$ is clear.  My trouble is with $(\Rightarrow)$. Suppose that $\varphi \rightarrow x$.  Let $U = \{ \alpha \in [0, \omega_1) \, \mid \varphi(\alpha) \neq x \}.$  If $U = \emptyset $ we are done, so assume $U \neq \emptyset$. Since $[0, \omega_1)$ is well ordered, there is a $\alpha_1 \in U$ such that $ \alpha_1 \leq \alpha \, \, \forall \alpha \in U.$  If $ U \setminus \alpha_1 = \emptyset$ we are done. If not, we repeat the procedure.  It is clear that if $card(U) = n$ for some $n \in \omega$ then we only have a finite set of ordinals $\{\alpha_1, \ldots, \alpha_n\}=U$ so $\varphi$ is constant for $\alpha > \alpha_n.$  If $U$ is countably infinite, then $U = \{\alpha_n\}_{n \in \omega}$ and since $[0, \omega_1)$ is sequentially compact and the $\alpha_n$'s are countable ordinals  we obtain a convergent subsequence $\{\alpha_{n_k}\}$ of $U$ to some countable ordinal $\beta \in [0, \omega_1)$ $[\beta = \cup_{n_k \in \omega}\alpha_{n_k}???],$ hence $\varphi$ is constant for all $ \alpha > \beta.$     But what if $U$ is uncountable?    Idea: If $U = [0, \omega_1),$ then since $\varphi \rightarrow x$, for every $n \in \omega$ there is $\alpha_n \in U$ such that $\alpha \geq \alpha_n \implies \varphi(\alpha) \in B_{\frac{1}{n}}(x).$ This is a countable sequence, so since $[0, \omega_1)$ is sequentially compact, there is a subsequence converging to a countable ordinal $\beta \in [0, \omega_1)$. Clearly, $\beta$ satisfies that $\phi(\beta) \in B_{\frac{1}{n}}$(x) for every $n \in \omega.$     We can conclude that $\varphi(\beta)= x$ right?   For if $\varphi(\beta) \neq x$, then taking $n$ such that $0 < \frac{1}{n} < d(x, \varphi(\beta)),$ we would have that $\varphi(\beta) \not \in B_{\frac{1}{n}}(x),$ contradicting the hypothesis.  I feel pretty confident about this, but If someone sees an error in the argument, please comment. Thanks.


Is there an easy way to fly back to the previous system?

The game, if you follow the Atlas, pushes you forward.  I jumped from system 1 to system 2.  I can not find System 1 again.  I search for an hour.  I tried using a green star as a fixed point so I know I always start in the same orientation.  I have since moved on and I was not able to find system 2 from system 3 but I was able to find system 3 from system 4, so it is possible.  My question: is there an ingame mechanic to make finding previous visited systems easier?


I am doing problems in Induction. What i know is: First we need to test Base case, that is $P(n_0)$ should be verified. Second we need to assume that $P(k)$ is True which is the inductive Hypothesis Third we need to prove $P(k+1)$ is True using the above Hypothesis which gives the conclusion. But the below problem made me to fall in a confusion. When we assume $P(k)$ is True, does it mean all of $P(1),P(2),...P(k-1)$ are also True? Here is the problem: Prove using induction that $10^n-(5+\sqrt{17})^n-(5-\sqrt{17})^n$ is divisible by $2^{n+1}, \:\forall n \in N$ My try: Obviously $P(1)$ is True. I assumed that $P(k)$ is True: So we have: $$10^{k}-(5+\sqrt{17})^{k}-(5-\sqrt{17})^{k}=2^{k+1} Q \to (1)$$ for some $Q \in N$ Now let $$P(k+1)=10^{k+1}-(5+\sqrt{17})^{k+1}-(5-\sqrt{17})^{k+1}$$ Using $(1)$ we get $$\begin{array}{l} P(k+1)=10\left(10^{k}\right)-(5+\sqrt{17})^{k+1}-(5-\sqrt{17})^{k+1} \\ =10\left(2^{k+1} Q+(5+\sqrt{17})^{k}+(5-\sqrt{17})^{k}\right)-(5+\sqrt{17})^{k+1}-(5-\sqrt{17})^{k+1} \\ =5\left(2^{k+2}\right) Q+(5+\sqrt{17})^{k}(5-\sqrt{17})+(5-\sqrt{17})^{k}(5+\sqrt{17})\\ =5(2^{k+2})Q+(5+\sqrt{17})^{k-1}(8)+(5-\sqrt{17})^{k-1}(8)\\ =5(2^{k+2})Q+8P(k-1) \end{array}$$ Now according to my book, the author has taken $P(k-1)$ as True and proved the result. So my question is: When we assume $P(k)$ is True, does it mean all of $P(1),P(2),...P(k-1)$ are also True?


Can you set custom ringtones for contact groups?

In iPhone, you can easily change the default ringtone (Settings → Sounds → Ringtone) and set a custom ringtone for individual people (Contacts → [some person] → Edit → Ringtone).   But can you set a custom tone for a group of contacts? (E.g. "family" or "workmates".)  I think that would be handy—and quite basic functionality, so to speak—but I couldn't find a way to do this through the iPhone UI. Is it possible at all (without jailbreaking)?


Evaluation Symbol: Consistent Implementation

This question has been posted several times but...  I'm looking for a consistent implementation of the evaluation symbol:   Evaluation bar as delimeter: <...>| Auto-size to its enclosing expression: \left<...>\right   What I'm not looking for is:   Evaluation bar as relation: <...>\mid Manual-size to its enclosing expression: <...>bigg| A whole macro!   Now, the problem is that \rvert does not auto-size, whereas \left. inserts extra spacing.  Perfect would be something of the form \left_ telling latex to enclose the expression here while inserting no delimiter from the left at all, no matter wether visible or invisible.  Do you have an idea how to implement the evaluation bar? (Not just circumventing the problem!)  As an example consider:  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} y(a)&=\frac12 x^2|_a\\ y(a)&=\frac12 x^2\rvert_a\\ y(a)&=\left.\frac12 x^2\right|_a \end{align} \end{document}


Collectively aligning multiple align environments

I am using amsmath, and I want to be able to break a mathematical derivation into multiple align environments while maintaining their collective alignment.  In particular, I would like to horizontally align an entire derivation as though it were one align environment for the purposes of visual flow, so that when the derivation continues in the next align, the eye can easily follow from where it left off, despite arbitrary explanatory text at any point in the middle.  As far as I'm aware, aligning align environments in this fashion is not directly possible.  Is there a simple modification that can be made or a straightforward package that can be used to effectively "link" multiple align environments into one?  MWE  \documentclass{article} \usepackage{amsmath}  \begin{document}  This alternate derivation of the quadratic formula proceeds by first multiplying the equation by $4a$, rearranging, and adding $b^2$ to both sides: \begin{align}     ax^2 + bx + c &= 0 \\     4 a^2 x^2 + 4abx + 4ac &= 0 \\     4 a^2 x^2 + 4abx &= -4ac \\     4 a^2 x^2 + 4abx + b^2 &= b^2 - 4ac \end{align}  Then, having completed the square on the left-hand-side, factor it, take the square root, and solve for $x$: \begin{align}     (2ax + b)^2 &= b^2 - 4ac \\     2ax + b &= \pm \sqrt{b^2-4ac} \\     2ax &= -b \pm \sqrt{b^2-4ac} \\     x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \end{align}  \end{document}   Output


Can I travel to Paris for a day with a single entry visa for Schengen from Switzerland?

I am visiting a friend in Switzerland for ten days. I have already got visitor's visa for the same on my Indian passport. Particulars mentioned on my visa are:  1. 'Etats Schengen' , 2. Single entry 3. Dates of visit. & 4. Type of visa : C.  I understand that having already got ‘Etats Schengen' visa, I can travel to all Schengen countries.  I am also planning to visit Paris for a day during my stay in Switzerland. However, I never mentioned this in my visa application. I am planning to take a train from Geneva to Paris and book a hotel in Paris for one night. Can I possibly plan my Paris trip this way as I have Schengen visa, or I am not allowed to travel out of Switzerland as I never mentioned this in my visa application?   Also what does Single entry on my Schengen visa means: does it mean that I can enter and leave Switzerland only once or it means that I can enter and leave the Schengen region only once.


I want control Excel with my keyboard while using the mouse on Firefox. I need to maximize Excel and I have two monitors so covering the distance to travel between them is a little annoying.  Windows 7 x64


Below is the code I made for a simple html table. My goal is to center the entire table vertically in the center of the page based on the users height of the device. I tried to make a div with the height as 100% and width as 100% and placing the table 50% from top and left and no luck. Any ideas?    body {     background-color: #a00000; } table {     margin: 50px auto 25px auto;     padding: 0px;     background-color: #fff;     border-radius: 10px; } td {     background-color: #fff;     padding: 10px;     background-color: #fff;     border-radius: 10px; } img {     max-width: 120px;     max-height: 120px;     border: solid 5px #a00000;     border-radius: 5px;     background-color: #a00000; } <!DOCTYPE html>               <meta charset="UTF-8">         <title>Bobcat Menu</title>         <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />         <link rel="stylesheet" href="css/style.css">


I am wondering if there is any way that we can alter the cycle normal pass to output value in camera space. Currently, as far as I know, the normal is in object/world space, which does not change when the camera is moving around.  I have tried using matcap, but the result is undesired. Matcap coasts a new material on the objects and overrides its transparency (eg. leaves will appear as just a rectangle)  UPDATED: The interest render engine is Cycle, and as far as I know, in Blender Internal, the normal pass is already in camera space. That could be a solution, render the scene twice, one with Cycle and the other with Blender Internal. However, it is not desired since the overhead would be too much.


Probability: A flaw in logic? The emperor's proposition with marbles and two urns

I've tried searching for this question but couldn't find it on stackexchange. This is a common type of interview question; I ran into it doing brain teasers on a probability puzzles app, and if you fine people agree with my logic, I will inform the app developer that his/her answers are incorrect.   The problem is essentially this:  You are sentenced to death for thievery. The King is magnanimous and decides to put your fate in the hands of chance. You are given $100$ white marbles and 100 black marbles, and $2$ urns. The king will choose an urn at random and pull out a single marble at random; if the marble is white, you live, if its black, you die. If you place the marbles in the best way possible, what is your probability of survival?  I started with the base case: $100$ white marbles in one urn, $100$ black marbles in the other. This comes down to a $50$-$50$ chance of survival. I then worked my way to deciding that placing $1$ white marble in one urn and $99$ white marbles + $100$ black marbles in the other urn would be the "best way possible", which yields the following:  $$P(\text{Survival}) = \frac{1}{2}(1+\frac{99}{199}) \approx .749$$  Selecting $1$ of $2$ urns at random gives $\frac{1}{2}$, the urn containing $1$ marble gives $1$, and the other that contains $99$ white marbles and $100$ black marbles gives $\frac{99}{199}$ because there are $99$ possible white marbles to select out of $199$ total marbles.  The app claims that the correct answer is $\frac{1}{2}(1+\frac{99}{200}) \approx .748$   I see where the $200$ comes from, but I do not think it is right to say that there are $200$ marbles in the other urn. Who is correct?


Does the concordance correlation coefficient make linearity or monotone assumptions?

Does Lin's  assume that the 2 data sets have linear or monotonic tendencies? Or, can I measure the concordance between 2 data sets that have a sinusoidal tendency?


Is it OK to use two consecutive 'that' in a sentence?

Is the usage of 2 consecutive 'that' in the following sentence correct, because it looks a bit odd? Should these be separated by comma perhaps?  "While I agree that strength and size definitely gives an advantage but I don't believe that that advantage holds up against a highly skilled fighter!"


Current working directory is PATH2 ARG2=3 $ for i in {1..$ARG2}   do     cd FIXBILL_$i     cp output.txt $PATH1     cd $PATH1     mv output.txt output_$i.txt     cd $PATH2  done  sh[3]: FIXBILL_{1..3}:  not found. cp: cannot access output.txt: No such file or directory mv: output.txt: cannot access: No such file or directory  it should take FIXBILL_1 , FIXBILL_2 & FIXBILL_3 but instead its taking FIXBILL_{1..3}. Please help.


How to get a NI Traktor Audio 2 sound card work with Mixxx

I've got a NI Traktor Audio 2 sound card I'd like to get working with Mixxx, but I don't seem to have any success so far. The card seems to be supported in Ubuntu out of the box, and it seems to work well with ALSA, but I cannot select it in Mixxx and I'm not sure whether is something I can do to make it see it (e.g. through).  So for testing purposes, on the command line I can execute aplay to check each channel:  aplay -D plughw:2,0,0 test.wav   and  aplay -D plughw:2,0,1 test.wav   That works well: I can hear the test sound on each channel (A and B)  The relevant output for this card using aplay -D is:  hw:CARD=TraktorAudio2,DEV=0      Traktor Audio 2, Traktor Audio 2      Direct hardware device without any conversions plughw:CARD=TraktorAudio2,DEV=0      Traktor Audio 2, Traktor Audio 2      Hardware device with all software conversions   From those 2 items on the output, plughw is the one that works, whereas hw doesn't.  The problem is that Mixxx only lets me select the hw card, which does not seem to work. I'd like to be able to select the plughw card, which is the one that's working.  I've tried suspending Pulse Audio as suggested by , but that did not seem to work. I also played around with an .asoundrc file similar to the one  (which was for an older model of this sound card), but also without success.  Any ideas on how to make Mixxx show the right card (and channel, while we are at it)?  Thanks!


How do we duplicate and rotate multiple copies, as when modeling an aircraft propeller, given the template blade

I tried this, given the template propeller blade mesh already drawn, but see no copies: j = 1          # count 1-to-n blades while j<= 3:     bpy.ops.object.duplicate_move()     obj = bpy.context.active_object     bpy.ops.transform.rotate(value = j * 2 * pi / 4, orient_axis='X', orient_type='GLOBAL')     j=j+1


Log form of variables and descriptive measures

Because of larger values of variables, I did a log- transformation in my dataset. Now I want to give a descriptive table regarding my variables like mean, max, min, median, skewness, kurtosis. Can I give standard measures like arithmetic mean or should I give geometric mean? In terms of skewness or kurtosis, do I need a transformation?


I have a problem with my Python code. I loaded a csv file into python using the csv module (as a list of lists), then did some cleaning procedures with it (that's the function 'cleaning', it takes two lists: the original and the edited one), and then wanted to print it. When printing immediately after cleaning a single entry (a single list), everything works fine. However, after printing the whole cleaned dataset, all the last entries in that set are the same (which they are not suppossed to be). Where am I going wrong?     import csv  total_list = [0] * 2809 copy_list2 = [0] * 9 copy_list = [copy_list2] * 2808 #Cleaning procedure def cleaning(member_list, copy_list):     #If last name is entered in first name column, moves last part of     #first name to last name and removes it from first name (if first name)     #contains multiple words     for i in range(len(member_list)):         copy_list[i] = member_list[i]     if len(member_list[2]) == 0 and len(member_list[1].split(" ")) > 1:         copy_list[2] = member_list[1].split(" ")[-1]         copy_list[1] = " ".join(member_list[1].split(" ")[:-1])     #Change all empty entries to Nb     for i in range(len(member_list)):         if len(str(copy_list[i])) == 0:             copy_list[i] = "Nb"     #Capitalize first letter, and lower all other letters     for i in range(len(copy_list[:6])):         if copy_list[i].isupper():             copy_list[i] = copy_list[i][0].upper() + copy_list[i][1:].lower()     #Change seperation operator of dates to /     for i in range(6,9):                 if "." in member_list[i]:             copy_list[i] = member_list[i].replace(".", "/")         elif "-" in member_list[4]:             copy_list[i] = member_list[i].replace("-", "/")   #Open csv File with open('Archive.csv', 'r') as csvfile:     spamreader = csv.reader(csvfile, delimiter = ';', quotechar = '|')     i = 0     for row in spamreader:         total_list[i] = row         i += 1    #Delete header row del total_list[0] i = 0 for j in total_list:     cleaning(j, copy_list[i])     #When printing j and copy_list[i] everything looks fine     i += 1  #When printin here, suddenly the last elements are all the same!               print(copy_list[-3])


In my iPhone app, when people are playing it, the screen goes black until you touch it again  after they play it for a couple minutes. Is there any way for me to prevent this from happening?


Can't insert texts with ' symbol in database using php

So I've got this problem where I can't seem to insert texts into my database which contain the following character: ' (as in for example:  It's). I've had this problem before and I just stripped the symbol, but now I really need a solution and nowhere on the entire web or stack overflow I can't seem to find a decent and clear answer.  This is how my data is displayed:  HTML  <textarea name="text_from_form">       This is the kind of stuff I need and It's awesome (user input example) </textarea>     PHP  <?php    $my_text = $_POST["text_from_form"};   $my_text_new = htmlentities($my_text);    $sql = "INSERT INTO tableName (text)   VALUES ('$my_text_new')"; ?>   THE ERROR  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's awesome ')' at line 2   Thank you in advance for the help!


When I make a claim in a proof that a mathematical entity exists, is this no more than saying that the theory I'm working within is consistent, and that all the steps upto that point in the proof are allowed moves in the theory?   By mathematical entity I mean a number, say 3; or an algebraic system such as the group of rotations of the square or the ring of natural numbers; or the category of varieties (a variety is an algebraic system with a fixed number of operations). It could also be a circle, or the category of all manifolds. It could be set theory axiomatized in ZFC.  Not only do these entities relate to each other (for example, after 2 is 3; the group of rotations of a square is related to that of a cube) but also they have structure (3=2+1 in the ring of natural numbers; or the circle, a 1-dimensional manifold is made up of 0-dimensional points)    Existence is a loaded word, we experience in our everyday lives with the existence of chairs and tables or the colour red. It seems very odd that the same word is used for entities that are unavailable directly to the senses, but at the same time it is 'oddly' appropriate.   Taking the platonic perspective - that these entities exist in their own world - and that we access this world through an effort of will. Then supposing that our own physical universe does have a complete mathematical theory. Then the entities in this theory, as well as the theory itself appear to exist in this other separate world, and our own physical world (with us in it as we are physical beings) appears to be incarnated in someway in this other world. This seems odd. Perhaps this suggests that the universe cannot have an underlying mathematical theory?  On the other hand, taking an entirely formal point of view seems (to me) deeply unsatisying. Its an interesting/entertaining point of view, granted.   For one thing, a formalisation appears to be only a perspective or an approximation. For example I have a circle in mind, I could choose to formalise this as a figure of plane geometry as Euclid originally did or a 1-dimensional smooth manifold. It is approximate, as formalisations have changed over time, and are likely to keep on doing so.


Go to character in Visual Studio 2015 instead of go to line

I apologize in advance, this feels like a really dumb question but I am genuinely stuck.  I get the following error:    I've circled in blue my main question. Is this the character position of the error?  And if so, how do I jump to it in my c# code in visual studio?


Why do you need "total answer score of 5" to suggest tag synonyms

I am not so good at answering questions, but I do read a lot of them and I usually figure out what common synonyms are used for a concept.  I would like to improve Stack Overflow by suggesting some tag synonyms, but alas, I do not have the "Answer Score" in the tag needed to suggest.  I would like to request that another (higher) question score be added to suggesting tag synonyms.  Or maybe a "if you are over 15,000 rep and you have X number of questions with X number of upvotes in a tag" then you can suggest tag synonyms.  I am just looking for some way for us question askers to help improve the tags.  Remember, this is just to suggest.  They still have to be voted on and approved by 4 other people.


Bounty-like facility for rewarding excellent questions

Amongst the reasons for starting a bounty, one can select:     Reward existing answer      One or more of the answers is exemplary and worthy of an additional bounty.   Why not enable one to reward excellent questions in a similar manner?


How to create a squared buffer around a point with Python GDAL?

I have a large collection of points with X and Y coordinates in a projected coordinate reference system (EPSG:28992). I would like to compute a square buffer around it (say, 500 meters around the point), so I can crop this polygon with a raster layer (in TIFF format) and proceed with a further analysis with the values within the cropped windows.  I am aware that this is possible in , but for the sake of the workflow I am implementing, I prefer to have it entirely in the Python GDAL environment, so it becomes automatic. Since I know the X/Y coordinates and the size of the grid cells in the raster, I could add/subtract to the coordinates the desired buffer, but I wonder whether there is a less handcrafted version of this "square-buffer" operation, which is less prone to errors. Other Python libraries (e.g. shapely) would be fine for me as well.   Note that a band.GetRasterBand(1).ReadAsArray(X, Y, 5, 5) does not return the window around the point, but the window leaving the point in a corner.   For instance, the following code:  path_curr_lyr = r"path_to_tif_file" tif = gdal.Open(path_curr_lyr) dat = tif.GetRasterBand(1).ReadAsArray(9550, 9620, 1, 1) print(dat) sq_buf = tif.GetRasterBand(1).ReadAsArray(9550, 9620, 5, 5) print(sq_buf)   Accesses the raster grid cell X/Y (9550, 9620) and returning the value of forest coverage in that pixel, and the value of a window of width= 5 pixels.  >>> [[44]] >>> [[ 44  87  99  86  43]      [ 96  99  99  79  14]      [ 99  99  98  34   9]      [ 99  86  27  93  71]      [ 98  98 100  97  65]]    As you can see, this approach returns a window in which the "44" is not a central value, but one in the corner. I would like to have a procedure in which a window around the given grid cell coordinate is created.  Any advice on how to implement this?


I have seen this salutation written to me in an email, " Hi, -" Is this correct grammar  ?


Need to generate seamless gradient noise texture for water Shader

I need to generate something like this    for my water Shader, because on fly calculations are to expensive for mobile (). The texture needs to be seamless. I currently clueless where and how to make this happen (especially about the seamless thing). Any help appreciated!


Classification of Bayesian probabilities

I have run a series of Bayesian models with flat priors in which I obtain a posterior probability distribution for my coefficient of interest. The reviewer of my paper wishes us to classify these probability according to different strengths of evidences (strong, moderate, weak etc..). I have seen this done with Bayes factor, e.g.,   I wish to avoid running the models with and without the coefficient. Instead, I thought I could compare the posterior and prior probability. However, I have uninformative priors so I think Bayes factor would not work(?). But I wonder whether I can still follow this classification, e.g., under the null prior, I expect 50% of the coefficient to be negative. While my posterior probability is 5%. From that, can I infer a Bayes factor of 10 (0.5/0.05), which would be strong evidence?  Or is there another classification scheme I could use?  Thanks for any help and especially any references?


I see this ad sometimes and I would like to know what the acronyms are.


I am a very beginner with blender and I had always the opportunity to zoom inside of my models when im in the edit mode. Now I can zoom as much as I want but never get inside of the model. Can someone maybe help me? this would be really great! Thank you! -Chapi


Counterexamples to the converse to Lagrange's Theorem different from $A_{4}$.

I know that $A_{4}$ is a counterexample to the converse to Lagrange's Theorem. I was thinking that I don't know another one. What other examples are possible?


I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it takes for the copy to complete.  Any suggestions would be much appreciated.


How can i divide a string or list in twos?

It's simply like this:  Input: "abcdefgh"  Output: ["ab","cd","ef","gh"]  Is there any more practical way or method for this? Or do I have to use if conditionals?


What TV movie had lost space cadets who piloted yellow tripod robots, and a squid bad guy?

I'm trying to find a movie I watched on TV, probably in the 90s. I think it was a made-for-TV movie.  It was about a ship with an AI. The ship was crewed by young adults. I think they were cadets?   There was an accident (like a warp drive malfunction) and they end up in another part of space where they meet a female alien whose ship had been shot down.  I remember they had manned robots they would pilot and they took them to a planet to get upgraded and they are attacked by more manned robots. They had three legs and they were yellow, I think.  I also remember the baddie had a holo-projector or something like that which allowed him to change his appearance. He commanded a massive fleet and he worked for someone he spoke to in a video chat that looked like a squid.


How long between Singapore tourist visas?

Last month my Singapore tourist visa expired, so I returned to India.    After 1 month I am planning to apply for a new Singapore visa. Is it possible to be granted a new visa that quickly? How long am I supposed to  wait to re-apply for one?


Moving folder and subfolder to another path

I need to move my folder with many subfolders to another path.  I'm using putty and this is what I tried: MV -r fromflderpath tofolderpath  What am I doing wrong?


Settings API enable default settings on theme install?

I am still learning settings API so please forgive my noob question. I have three fields: a checkbox, colorpicker and text field (they are working), but I would like to do this: when the theme is installed add "checked" state to my checkbox but allow user to "unchecked" it ,and if empty add default color to my colorpicker... I have no idea how to do this so please help me!  My code looks like this now (thanks to @Chip Bennett! ) :  <?php add_action('admin_menu','create_theme_options_page'); function create_theme_options_page(){ add_options_page('Theme Options','Theme Options','administrator',__FILE__,'build_options_page'); }    function build_options_page(){    ?>

My options page
    <form method="post" action="options.php">    <?php settings_fields('plugin_options');?>    <?php do_settings_sections(__FILE__); ?>
    <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save changes');?>"/>
    </form>
    <?php    }       add_action('admin_init','register_and_build_fields');      function register_and_build_fields(){      register_setting('plugin_options','plugin_options','validate_setting');      add_settings_section('main_section','

Main Settings','section_cb',__FILE__);      add_settings_field('banner_heading','Banner Heading:','banner_heading_setting',__FILE__,'main_section');      add_settings_field('display_sidebar','Display Sidebar:','display_sidebar_setting',__FILE__,'main_section');      add_settings_field('display_colorpicker','Display Colorpicker:','display_colorpicker_setting',__FILE__,'main_section');      }        //Install Iris colorpicker        add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' );        function mw_enqueue_color_picker( $hook_suffix ) {        // first check that $hook_suffix is appropriate for your admin page        wp_enqueue_style( 'wp-color-picker' );        wp_enqueue_script( 'my-script-handle', get_template_directory_uri() . '/js/my-script.js', array( 'wp-color-picker' ), false, true );        }           //Colorpicker          //Now how to add a default color on theme install?          function display_colorpicker_setting(){          $options = get_option('plugin_options');          echo"<input type='text' id='color1' name='plugin_options[display_colorpicker]' value='{$options['display_colorpicker']}'/>";          }            //Sidebar checkbox           //Now how to add a default state "checked" on theme install?           function display_sidebar_setting(){           $options = get_option('plugin_options');           echo "<input type='checkbox' name='plugin_options[display_sidebar]' {$options['display_sidebar']} id='display_sidebar' />";           }              //Banner Heading             function banner_heading_setting(){             $options = get_option('plugin_options');             echo "<input name='plugin_options[banner_heading]' type='text' value='{$options['banner_heading']}'/>";             }               //Validate our settings here               function validate_setting($plugin_options){                  return $plugin_options;               }                 function section_cb(){                } ?>


How can a word for 'the act of Xing', semantically shift to mean 'the thing Xed'?

I don't grasp .  An example of (3) might be  (from a 15th-century will):  I now the seid John Smyth, for diu[er]se causez and consyderacyonys shevyd vnto me, will ordeyne and declare ...  Here, "consideration" means "something to be considered, a reason".  The semantic sense has shifted from the act of considering to the thing considered.  A parallel might be the word "obligation", where the shift is from the act of obliging, to the thing one is obliged to do.  These semantic shifts are too apart, far-reaching, far-fetched for me to grasp! To the common Anglophone, "the act of considering" plainly differs from "the thing considered". For instance, rational humans perform "the act of considering", while "the thing considered"    is an inanimate valuable object like money. How can I interpret these semantic shifts so they feel natural, intutitive common sense? How can these semantic shifts be bridged?


I am about to finish a trip to the Schengen are (a single country) and intend to travel again to other Schengen countries in August. Is it safe to apply for another Schengen visa immediately after the completion of the first visit?


I have strange issue, which I don't understand. I would like to make a JSON Object in JavaScript. My example code:  $(document).ready(function(){  var myJson = new Object(); var data = new Object(); myJson.items = [];  data.name  = 'test';  for (i = 0; i < 5; i++){   data.counter = i;   myJson.items.push(data);   } console.log(JSON.stringify(myJson));  });   Output:  {"items":[{"name":"test","counter":4},{"name":"test","counter":4},{"name":"test","counter":4},{"name":"test","counter":4},{"name":"test","counter":4}]}   Why the counter variable in JSON have always value 4 ??????


Issues installing WineHQ-staging on Ubuntu 18.0.4

Here's the error I keep getting:  ~$ sudo apt install --install-recommends winehq-staging Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  winehq-staging : Depends: wine-staging (= 4.5~cosmic) E: Unable to correct problems, you have held broken packages.   I've downloaded and installed the libfaudio0 packages as suggested on the .  It's a fresh Ubuntu machine, so no previous versions of Wine are installed. Tried running through the commands listed on the wiki page several times, tried both stable branch and staging, but i receive the same error with both.


Change in itinerary after getting a Schengen visa: Addition of a country

Original itinerary Fr 13nights  would it be okay to change itinerary to:  Change to FR 6nights-> IT 7nights -> FR 1night  Already hold Schengen visa valid for 15 days.  Will I be in breach?


I am trying to get the AMOUNT_APP WHERE DATE _APP is the greatest value.   I wrote this query, but I am having troubles  SELECT AMOUNT_APP FROM Payments_App WHERE DATE_APP = MAX(DATE_APP)   I expect to get 5234.34


I'm learning C just started today and I'm coming from knowing a bit of Python and a little bit of Javascript and I want to know how I would get the int base of a string for example in Javascript you can do this:  parseInt("myString", 36);   That would return 1799765255212   In Python it would be this:  int("myString", 36)   Which would also return 1799765255212  Is there a C equivalent? If not, how would I make one?


What is the physical meaning of Ricci scalar is a covariantly constant?


My external hdd not mounting on ubuntu 16.04 LTS

Heres the error message i get every time i try to mount it via terminal  The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sde2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option


I've heard that ratios or inverses of random variables often are problematic, in not having expectations. Why is that?

The title is the question. I am told that ratios and inverses of random variables often are problematic. What is meant is that expectation often do not exist. Is there a simple, general explication of that?


I'm learning Blender, and I want to make keys for a keyboard with RBG lights incorporated inside them (final render will be an image, not an animation). I created a low-poly key, with 2 material : 1 for base color, and a second one for the random color. So here is what I did  But now, i simply want to make an array to fill the keyboard. But the colors is not random at all, it stays the same.


Template specialization of template class member function

I am trying to specialize template class member functions:  In valueinput.h  namespace Gui     {     template<class T>     class ValueInput:public TextInput         {         public:                      static ValueInput* create(Gui& gui_obj,uint32_t style_0,uint32_t style_1                 ,Window* parent,T& obj)                 {return new ValueInput(gui_obj,style_0,style_1,parent,obj);}              //Polymorphic implementation inherited from             //TextInput that needs specialization depending on T             void valueUpdate();              //Polymorphic implementation inherited from             //TextInput that needs specialization depending on T             void displayUpdate();          protected:             ValueInput(Gui& gui_obj,uint32_t style_0,uint32_t style_1,Window* parent                 ,T& obj):TextInput(gui_obj,style_0,style_1,parent),ptr_obj(&obj)                 {}          private:             T* ptr_obj;         };     }   In valueinput.cpp  template<> void Gui::ValueInput<double>::displayUpdate()        {     Dialog::messageDisplay(this,{STR("Display Update"),Herbs::LogMessage::Type::INFORMATION},STR("Test"));     }  template<> void Gui::ValueInput<double>::valueUpdate()      {     Dialog::messageDisplay(this,{STR("Value Update"),Herbs::LogMessage::Type::INFORMATION},STR("Test"));     }   Compiler output:  g++ "valueinput.cpp" -g -municode -Wall -c -std=c++11 -o "__wand_targets_dbg\valueinput.o"      valueinput.cpp:21:45: error: specialization of 'void Gui::ValueInput::displayUpdate() [with T = double]' in different namespace [-fpermissive]      valueinput.cpp:21:6: error:   from definition of 'void Gui::ValueInput::displayUpdate() [with T = double]' [-fpermissive]      valueinput.cpp:27:43: error: specialization of 'void Gui::ValueInput::valueUpdate() [with T = double]' in different namespace [-fpermissive]      valueinput.cpp:27:6: error:   from definition of 'void Gui::ValueInput::valueUpdate() [with T = double]' [-fpermissive]   What is wrong?


Easiest way to share screen with students without using internet

I am teaching basic programming skills to a group of 8 students in High School. It is becoming increasingly irritating to have to constantly write down syntax in a white board rather than just show the students on my laptop screen.   Other than using a projector, is there a (inexpensive) way I can show the students what's happening on my screen without using internet. The students sit close to me, so using cables is a possibility.


I have learned Python for about 4 months, I thought I know every basics now. But currently I accidently tried a simple python expression, and the result is out of my expectation. for example: test = [1,2,3,4]  test[0:-1:-1]  and the result is an empty list([]). However, my expected result is [3,2,1] for "test[::-1]" will output "[4,3,2,1]". Can anyone tell me why?


Benchmark (hash rate) for SHA-3 (SHAKE128)

To estimate the time for brute-force attack we need to compute keyspace size divided by hash rate, where the hash rate (hash/second) varies depending on the computer's capabilities.  The website  shows the hash rate for different computers.  Can you explain the following two confusing phenomena?   The hash rate decreases as the message size increases. Core i3 has a higher hash rate than Core i7 for SHAKE128.


Dividing two numbers by their GCD to obtain relative primes

If we divide $15$ and $81$ by $(15, 81) = 3$, we obtain two relatively prime integers, $5$ and $27$. This is no surprise because we have removed all common factors. This illustrates the following theorem, which tells us that we obtain two relatively prime integers when we divide each of two original integers by their greatest common divisor. Can anyone please help me understand how all the common factors are removed by dividing with their gcd?


I am trying to find a story where a children's nursery turns into a jungle

I read this short story(I believe it was under novella length, but I could be mistaken) a while back, and I am trying to identify the title for a friend.   Plot:      Parents(male and female) get a computer aided/holographic nursery for their children. The mother becomes increasingly agitated as the children withdraw more. The children are barely even featured in the story, and the ending concludes with lions possibly eating the parents.   Publishing date: Years ago.   Tech level: Seemingly functional AI, not much more.


Why do I need to type `./` before executing a program in the current directory?

While executing a C program, a.out, using the Ubuntu terminal, why do I always need to type ./ before a.out, instead of just writing a.out? Is there solution for this?


Would it be nice to be able to hide questions where answers were accepted quickly?

For example someone asks a question and then accepts an answer a few minutes later.


Why can't the electrons that are attracted to positive terminal of cell flow through the wire ?


When designing geodatabases I have followed industry standards and used text and numeric fields.  Some people have different ways of designing geodatabases and only use text fields.  What are the schools of thought on text vs. numeric fields?  Why would you use a text field when it is always a numeric value?


How linux know the type of the file it is dealing with?

In windows the OS know the type of file by using extension: exe,doc,ppt,pdf ....  etc    In Linux as we know that the extension is useless.   My question is how can Linux know the type of file it is dealing with: shell script, audio file,video file .... etc or is it dealing with all the files in the same way?


Are two random variables X and Y independent of each other if their covariance and correlation are both zero?

Does both the Cov(x,y)= 0 and the Corr(x,y)= 0 for random variables x and y to be independent. Is it possible random variables are correlated whilst the covariance is zero?


Does zip's -u flag pay attention to deleted files?

about Linux's zip utility says this about the -u flag:     Replace (update) an existing entry in the zip archive only if it has been modified more recently than the version already in the zip archive. For example:          zip -u stuff *   will add any new files in the current directory, and update any files which        have been modified since the zip archive stuff.zip was last created/modified.   My question is, if a particular file has been removed since the last time it was zipped, whether -u will recognize that the file has been removed and thus remove it from the *.zip file?  Or, lacking timestamp information (since the file is now removed), it will leave the backed up file in *.zip, since there is no "newer" file?


Is it possible to install Microsoft office 2011- Mac version - in Ubuntu?

I have Mac Version of office 2011. Can I install that in Ubuntu 14.04LTS?


Every open set in $\mathbb{R}$ is a countable union of closed sets

So, I have proven already that every open set in $\mathbb{R}$ can be written as a countable union of disjoint open intervals; i.e., that $\mathcal{O} = \bigcup_{i=1}^\infty (a_{x_i}, b_{x_i})$.  Now, consider the closed interval $\left [ a + \frac{1}{n}, b - \frac{1}{n}\right ] \subset (a, b)$.  Since the midpoint of $(a,b)$ is $\frac{b-a}{2}$, we need $\displaystyle n > \frac{2}{b-a}$.  Otherwise, $\displaystyle a + \frac{b-a}{2} = a + \frac{1}{ \frac{2}{b-a}} = b - \frac{1}{ \frac{2}{b-a}} = b - \frac{b-a}{2}$, and our interval will be degenerate.  Note that $\forall (a,b) \in \mathcal{O}$,   $\displaystyle \bigcup_{n = \frac{b-a}{2}+1}^{\infty} \left[ a + \frac{1}{n}, b - \frac{1}{n} \right] = (a,b)$.  So, we have $\displaystyle \mathcal{O} = \bigcup_{i=1}^\infty \left ( \bigcup_{n = \frac{b-a}{2} + 1}^\infty \left[ a_{x_i}+\frac{1}{n}, b_{x_i}-\frac{1}{n} \right] \right)$.  But, I don't like this. It looks like I'm still just taking a union of open sets.  Please help me get this to look like the union of closed sets.  (For unbounded intervals, I know what to do - it should follow from this relatively easily).


Is the infinite sum of $2 ^{-n}$ convergent? Why?

As a follow-up to a , I'd like to know if  $$\sum_{n=1}^\infty\frac{1}{2 ^ n}$$  is convergent? If yes, then what does it converge to?  Just as a sidenote - the whole issue started with reading about Zeno's Turtle Paradox which made me curious about the underlying mathematics.


Let $T: V \rightarrow W $ be a linear mapping such that $T^2=T$, show that $V = M \oplus N$.

Let $T: V \rightarrow V $ be a linear mapping such that $T^2=T$. If $M = Image(T)$ and N = $Ker(T)$,   I want to show that $V = M \oplus N$. Not sure how to proceed.


So I imported a part of a latex code to make a good table of contents, but it gives me an extra page after every chapter which I don't want.   \documentclass[11pt]{book} \usepackage[dutch]{babel} \usepackage{amsmath} \usepackage{xcolor} \usepackage{framed} \usepackage{titletoc} \usepackage{etoolbox} \usepackage{lmodern} \definecolor{myred}{RGB}{127,0,0} \definecolor{myyellow}{RGB}{169,121,69} \patchcmd{\tableofcontents}{\contentsname}{\sffamily\contentsname}{}{}  \usepackage{xcolor} \usepackage{framed}  \definecolor{myred}{RGB}{127,0,0} \definecolor{myyellow}{RGB}{169,121,69}  \renewenvironment{leftbar}{%   \def\FrameCommand{{\color{myyellow}\vrule width 2pt depth 6pt} \hspace{10pt}}%   \MakeFramed {\advance\hsize-\width \FrameRestore}}%  {\endMakeFramed}  \makeatletter \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne                        \if@mainmatter                          \refstepcounter{chapter}%                          \typeout{\@chapapp\space\thechapter.}%                          \addtocontents{toc}%                                    {%                                        {\protect\parbox{3.5em}{\hfill\Huge\color{myred}\bfseries\thepage}}%                                          \protect\hspace*{.5em}                                         \protect\parbox{\dimexpr\linewidth-4em\relax}{%                                            \protect\begin{leftbar}                                               {\scshape\small\chaptername~\thechapter}\\\sffamily#1%                                            \protect\end{leftbar}}\par\noindent                                     }%                        \else                          \addcontentsline{toc}{chapter}{#1}%                        \fi                     \else                       \addcontentsline{toc}{chapter}{#1}%                     \fi                     \chaptermark{#1}%                     \addtocontents{lof}{\protect\addvspace{10\p@}}%                     \addtocontents{lot}{\protect\addvspace{10\p@}}%                     \if@twocolumn                       \@topnewpage[\@makechapterhead{#2}]%                     \else                       \@makechapterhead{#2}%                       \@afterheading                     \fi} \makeatother \usepackage{graphicx} \usepackage[margin=2cm, paperwidth=210mm, paperheight=297mm]{geometry} \begin{document} \renewenvironment{leftbar}   {\def\FrameCommand{\hspace{6em}%     {\color{myyellow}\vrule width 2pt depth 6pt}\hspace{1em}}%     \MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt%   }  {\endMakeFramed}  \titlecontents{chapter}   [0em]{\vspace*{2\baselineskip}}   {\parbox{4.5em}{%     \hfill\Huge\sffamily\bfseries\color{myred}\thecontentspage}%    \vspace*{-2.3\baselineskip}\leftbar\textsc{\small\chaptername~\thecontentslabel}\\\sffamily}   {}{\endleftbar} \titlecontents{section}   [8.4em]   {\sffamily\contentslabel{3em}}{}{}   {\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage} \titlecontents{subsection}   [8.4em]   {\sffamily\contentslabel{3em}}{}{}     {\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}  \tableofcontents \newpage    \pagenumbering{arabic} \chapter {chapter one} \section{sectionone} some text \chapter {chapter two} \end{document}


Kinetic Energy: Difference in energy for observers

Consider a stationary 10kg bike; if I apply a force of 10J then $KE=\frac{1}{2}mv^2$ so $v=\sqrt\frac{2KE}{m}=1m/s$. If we consider the same example again, but from the point of view of a stationary astronaut looking down from space, the Earth is moving at approximately 30,000m/s, so the KE of the stationary bike would be $KE=\frac{1}{2}10*30,000^2=4,500,000,000J$. If we assume the bike is being pushed in the same direction the Earth is travelling, to get to 1m/s the bike will need a kinetic energy of $KE=\frac{1}{2}10*30,001^2 = 4,500,300,005J$, which is 300,005J more than for an observer on Earth. I understand that conservation of kinetic energy only makes sense if you look at all objects from the same frame, so my question is why it would appear to take so much more energy to accelerate a bike by 1m/s from one observer's point of view than another?


How to make a footnote on the figure or table caption

Another problem has occurred. I just want to make a footnote on the caption of the figure, but it doesn't works. I can make a footnote just before \end{figure}, but it doesn't looks good. So can anyone of you please help me? I have tried a lot of different methods from the internet, but nothing has helped. So please help me.


Need to understand the difference between calling JavaScript Remoting in two different ways

Can someone explain what is the difference between calling JavaScript Remoting in two different ways -  One way is mentioned @   Another way is mentioned @


How to find key given Vigenere Ciphertext?

I can't seem to find a tutorial online that helps me with this tasking. I have some Vigenere ciphertext (LVGPA...). It only says to assume that encrypting the key letter A results in no change, B results in an increment of one, C increments 2, and so forth.  How would I start to find the key?


Just wondering, are there any projects like WINE, but for Mac software? That is, can we use a program that acts like a compatibility layer to run Mac apps?


Proper term for knowing four or more languages?

If bilingual means you know two languages, and trilingual means you know three, what would be the proper term for knowing four, five or even six languages?


How am I supposed to put the first image under 1.6 and the second under 1.7?


If conditional in Python not providing correct result

This is a bit of a strange issue for me and I wasn't sure how to properly title the question. I have the follow MWE which simply generates a list of coordinate points (x,t) and performs some check to see if they lie on a user-prescribed boundary. In particular, if x[i] == 1.0 and t[i] != 0.0 then the program should print a statement stating so. I can't seem to figure out why the if conditional is never entered here. I have printed out the pairs of values x[i] and t[i] to verify that there are indeed pairs satisfying the conditional...  #Load Modules import numpy as np import math, random from pylab import meshgrid  # Create the arrays x and t on an evenly spaced cartesian grid N = 10 xa = -1.0; xb = 1.0;  ta = 0.0; tb = 0.4;  xin = np.arange(xa, xb+0.00001, (xb-xa)/N).reshape((N+1,1)) tin = np.arange(ta, tb+0.00001, (tb-ta)/N).reshape((N+1,1))  X_tmp,T_tmp = meshgrid(xin,tin) x = np.reshape(X_tmp,((N+1)**2,1)) t = np.reshape(T_tmp,((N+1)**2,1))  # create boundary flags for i in range(0,(N+1)**2):     if (x[i] == xb and t[i] != ta):         print("We are on the right-side boundary")


I have a couple of modem/routers that came with ISP services that are no longer being used. At the moment I have the current ISP's router running the wireless network and a wired portion to a couple of rooms. In one of those rooms I have a switch to connect all the computers there to the cable coming from the router.  In the other room I have a couple of cables (actually one split into two) but I need at least one additional wired connection there.  Can I convert the existing routers that I have to behave as switches? I don't want these routers to control their own subnet giving IPs to devices connected to it. They should be as transparent to the network as if I just had a few additional wired connections available there.


How can we prove that light is an Electromagnetic wave?

In many books it is written that light is an electromagnetic wave, as we know there does not exist any oscillator that can oscillate an electron with a frequency of light.  My question is, how can we prove that light is electromagnetic in nature ? what is light ? is there any physical meaning.


"There's a lot of old mines around here."   This is a line from the beginning of the movie Nevada Smith. I think the grammatically correct line is,     "There're a lot of old mines around here."   I think being grammatically correct does not necessarily mean being colloquially natural.  I wonder which is commoner, "There's a lot of old mines" or "there're a lot of old mines", colloquially speaking.


Else-if statement not working properly when evaluating Strings

I am writing a program for a school assignment to create one string array of 3 riddles and another string array of 3 answers to each riddle. However when I input the correct answer to the riddle it keeps on showing the else part of the if-else statement. Here's my code:  import java.util.Scanner; import java.util.Random; public class riddleProgram { public static void main (String[]args) { Scanner input = new Scanner(System.in); Random rand = new Random();  int index; int chosenRiddles = rand.nextInt(2);   //declares the riddles in the program as well as choosing a random riddle from the three presented String[]riddle = new String[3];  riddle[0] = "What starts with a T, ends with a T, and has T in it?"; riddle[1] = "The day before two days after the day before tommorrow is Saturday. What day is it today?"; riddle[2] = "What grows up while growing down?";  //declares the answers to the riddles String[]answer = new String[3]; answer[0] = ("teapot");  answer[1] = ("friday"); answer[2] = ("goose");  //asks user to enter guessed answer for the randomly presented riddle for (index=0; index<3; index++); {   System.out.println(riddle[chosenRiddles]);   System.out.print("Enter your answer for the presented riddle (lowercase): ");   String inputtedAnswer = input.nextLine();    //if user inputs right answer, congratulates user  //if user inputs incorrect answer, tells user the correct answer   if (inputtedAnswer == answer[chosenRiddles]) {      System.out.println("Congratulations, you have gotten the right answer!"); }   else {     System.out.println("Sorry you had the wrong answer. The right answer is " + answer[chosenRiddles] + ".");} }  }  }


Product topology on a product space of normed spaces is normable iff the product is finite

Suppose $(X_{i}, \Vert \cdot \Vert_i)_{i\in I}$ are all normed spaces over the same field $\Phi= \mathbb{R}, \mathbb{C}$ and suppose $X= \prod_{i \in I} X_i$ is the product space. I want to show that the product topology on $X$ is normable iff $I$ is finite. My work in the '$\Leftarrow$'-direction, is to show that the bases for the two topologies are equal and so therefore generate the same topology.   In the other direction however, I seem to get stuck, since I think the right way to go about it is to suppose that $I$ is infinite, but that the product topology on $X$ is normable and try to reach a contradiction, but I can't figure out where the contradiction is supposed to come from?


How to resolve symbolic links in a shell script

Given an absolute or relative path (in a Unix-like system), I would like to determine the full path of the target after resolving any intermediate symlinks. Bonus points for also resolving ~username notation at the same time.  If the target is a directory, it might be possible to chdir() into the directory and then call getcwd(), but I really want to do this from a shell script rather than writing a C helper. Unfortunately, shells have a tendency to try to hide the existence of symlinks from the user (this is bash on OS X):  $ ls -ld foo bar drwxr-xr-x   2 greg  greg  68 Aug 11 22:36 bar lrwxr-xr-x   1 greg  greg   3 Aug 11 22:36 foo -> bar $ cd foo $ pwd /Users/greg/tmp/foo $   What I want is a function resolve() such that when executed from the tmp directory in the above example, resolve("foo") == "/Users/greg/tmp/bar".


Let $X$ be a topological space and $A\subseteq X$.  I have to prove that if $der(\{x\})$ is closed and $x\in der(der(A))$ then $x\in der(A)$.  I tried this... if $x\notin der(A)$, there exists an open set $U$ with $x\in U$ such that $U\cap A=\emptyset$. We know that $x\in X\setminus der (\{x\})$ and this is open, then $x\in U\cap (X\setminus der\{x\})$ and this is open. Maybe this will imply a contradiction... What do you think?  Edit: We recall that $der(A)$ denotes the set of accumulation points of $A$ (some people say "limit point" instead "accumulation point")  Thanks.


Overlay translucent image on desktop / above all windows

I want a translucent PNG overlayed on top of my screen (above all windows). I'm using this to mark a visible region while streaming.   So far I've figured out that qiv -transparent filename.png will add a mask to the window, but it's a boolean mask. I don't get translucent fading with the alpha channel.  I know several effects have opacity, and I can sent window opacity, so I'm hoping there's some way to display an image that way.  What program, tool, or widget can I use to blend an image onto the top of the desktop?


Proof that $x^y + y^x > 1 \ \forall x,y > 0 $

The problem is trivial if at least one of $x$ or $y$ is greater than $1$.  So all we need is to proof that $x^y+y^x > 1 \ \forall x,y \in (0,1)$.


Error when inserting a tikz code in a large document

I want to integrate this tikz code in my thesis, but when I do that I get 2 errors and lots of warning.  Errors :  1) Package tikz Error: + or - expected. ...ht=of $(A-4.east)!0.45!(A-5.east)$] (a1); 2) Missing $ inserted. ...ht=of $(A-4.east)!0.45!(A-5.east)$] (a1);   Both errors are in this line: \coordinate[right=of $(A-4.east)!0.45!(A-5.east)$] (a1);  I don't know what is wrong that I did, my document compiles perfectly before adding the tikz code. Any idea how to solve this?  My Code :  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta, calc, chains, positioning}  \begin{document}     \begin{tikzpicture}[     node distance = 6mm and 15mm,     start chain = A going below,     ]     \tikzstyle{base}=[rectangle, draw, thick,     text width=8em, minimum height=3.5em, align=flush center,     on chain=A, join=by LA]         \tikzstyle{box}=[base, rounded corners]     \tikzstyle{EL}=[% Edge Labels     font=\footnotesize, align=left]     \tikzstyle{LA}=[% Line with Arrowhead     thick, -Stealth]       \node [box]     {User Requirements};            % A-1     \node [base]    {Informal Specification};     \node [base]    {Formal Specification};     \node [base]    {Protocol Verfication};         % A-4     \node [base]    {Implementation Development};     \node [base]    {Conformance Testing};     \node [base]    {Interoperability Testing};     \node [box]     {Maintenance};                  % A-8     %     \draw [LA]  (A-4.east) -- ++ (1.5,0) |-     ($(A-2)!0.45!(A-3)$) node[EL,pos=0.25,right]{Errors\\ Detected};     % auxilary coordinates     \coordinate[right=of $(A-4.east)!0.45!(A-5.east)$] (a1);     \coordinate[right=of a1] (a2);     \draw [LA]  (A-6) -| (a1) node[EL,pos=0.75,right] {Errors\\ Detected};     \draw [LA]  (A-7) -| (a2) node[EL,pos=0.75,right] {Errors\\ Detected};     \draw [LA]  (a2)  -- (a2 -| A-5);      \end{tikzpicture} \end{document}   Thanks in advance


How to "transition" from one texture/material to another (not animation related)

I'm trying to create something similar to the first image and I'm not sure how to go about creating that transition between the granule portion and the black tar portion as simply as possible.  Approximate goal  Where I'm currently at  View of the mesh. Just a cylinder with one material applied to the top set of faces and another applied to the lower ones.  An example of the granule textures I'm working with. I need to keep the modeling relatively simple since there will be a whole series of these with different color granules and the details in the black after the transition will be slightly different. Let me know if there's any more info I can provide to make this easier to figure out.


What is a good strategy for this dice game?

I learned the following dice game from another forum. It was not solved there. The dice game is as follows.   You start tossing six dice. After each toss you  must put aside at least one of the dice tossed. You continue to toss until you have no dice remaining. You cannot reintroduce a die once it has been put aside.   In order to get a score in this game you must have retained both a 2 and a 4. You get no score for them but without them you get no score at all. Your score is the sum of the remaining 4 dice.   The question is  what is the maximal expected score and how to act in order to maximize your expected score. I would guess it is optimal to put  each time exactly one die aside as long you have not obtained both a 2 and a 4.


When to use Ambient occlusion in Blender Render?

Quote from      So in cycles there often is no need for it.   So there must be a need for it in Blender Render  Can you think of a scenario where using ambient occlusion in Blender Render mode is the better choice over the other available option like spot lamps and nodes?


How to format whole numbers with .00 at the end

I want to achieve the following: Whatever number may be printed to the console, it has to have 2 digits after the decimal mark. When the result is a decimal number, the program rounds it off to 2 digits after the decimal mark, so this is fine. The problem is, however, that whole numbers don't get .00 attached to them, i.e. 100 gets printed as 100, and not as 100.00 as I want it to. I've been struggling with this for quite a while so I any help will be highly appreciated.  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace TorrentPirate {     class Program     {         static void Main(string[] args)         {                 int megabytes = int.Parse(Console.ReadLine());                    int cinemaPricePerMovie = int.Parse(Console.ReadLine());                 int wifeSpendingHour = int.Parse(Console.ReadLine());            TimeSpan time = TimeSpan.FromSeconds(megabytes/2);            double downloadTime = time.TotalHours;            double downloadPrice = wifeSpendingHour * downloadTime;            int NumberOfMoviesDownloaded = megabytes / 1500;            double cinemaPrice = NumberOfMoviesDownloaded * cinemaPricePerMovie;              if (cinemaPrice >= downloadPrice)             {                 downloadPrice = Math.Round(downloadPrice, 2);                 Console.WriteLine("{0} -> {1}lv", "mall", Convert.ToDecimal(downloadPrice));                     }             else             {                 cinemaPrice = Math.Round(cinemaPrice, 2);                 Console.WriteLine("{0} -> {1}lv", "cinema", Convert.ToDecimal(cinemaPrice));             }          }     } }


the code ends out of nowhere -1073741819 (0xC0000005)

When I enter different numbers in "studentNumber" and "testNumber" variables, the code closes at a specific place. No matter what value I give to the variables, the code stands in the second exam part of the 1st student. Code terminates with this error "Process returned -1073741819 (0xC0000005) execution time: 11.105 s" #include <iostream>  using namespace std;  int studentNumber=0; int testNumber=0; struct Student { string name,grade; int studentNo,*testResults; double average; };  void getValue() {     cout << "Enter the number of students: ";     cin >> studentNumber;     Student Students[studentNumber];     cout << "Enter the number of tests: ";     cin >> testNumber;     int Arr[testNumber];     Students[0].testResults = Arr;      for(int i=1; i<=studentNumber; i++)     {         cout<< "\n" << "Enter the name of the " << i << ". student: ";         cin >> Students[i].name;         cout<< "\n" << "Enter the number of the " <<  i << ". student: ";         cin >> Students[i].studentNo;          for(int z=0; z<testNumber; z++)         {             cout<< "\n" << "Enter the " << z+1 << ". exam grade of the " << i << ". student: " ;             cin >> Students[i].testResults[z];         }     } }  int main() {     getValue(); }  result:


Centering in \begin{aligned} enivronment

\begin{equation} \begin{aligned} f(h) = \pi h^3 -9\pi h^2 +90\\ f'(h) = 3\pi h^2 -18\pi h\\ h_{n+1} = h_n-\frac{f(h_n)}{f'(h_n)}\\ h_{n+1} = h_n - \frac{\pi h_n^3 -9\pi h_n^2 +90}{3\pi h_n^2 -18\pi h_n}\\ h_{n+1} = \frac{3\pi h_n^3 - 18\pi h_n^2 - \pi h_n^3 -9\pi h_n^2 +9}{3\pi h_n^2 -18\pi h_n}\\ h_{n+1} = \frac{2\pi h_n^3-9\pi h_n^2-90}{3\pi h_n^2-18\pi h} \end{aligned} \end{equation}   What do I do to center my equations in these case?


Difference between “with”, “at” and “for” with a business title and a company name

The prepositions “with”, “at” and “for” are also used to associate a business title with a company's name. It seems that they are interchangeable, with no (significant) difference in meaning. The following examples taken from The New York Times website seem to confirm that:      Until now, said Justin Nielson, a senior analyst for the media   research firm SNL Kagan, “there really hasn't been any direct   competitor . . .      “The consumer is still deleveraging,” said Jason Goldberg, a senior   analyst with Barclays. “It's not a lack of supply; it's a lack of   demand.”      “There’s the party of fear and the party of despair,” Nikos Xydakis, a   political analyst and an editor at Kathimerini daily, said.   Are they really the same as for meaning? If it isn't so, what is the difference between them?


Is there a way to break out of two while loops?

Currently working on a project but have run a bit into a stand still with my program.  while(True):     if p1.play() == False:         break     betInput = int(input("How much do you want to bet?"))     while(betInput > p1.wallet or betInput <=0):         betInput = int(input("How much do you want to bet?"))         continue     p1.bet(betInput)     print("")      for i in range(2):         p1.getCard ( d.dealCard() )         p2.getCard ( d.dealCard() )     p1.show()     p2.dealShow()     gameInput = input("Hit or Stand? H\S")     gameInput = gameInput.lower()     p1.gameMove(gameInput)     if p1.winCheck(betInput) == 1:         continue      while gameInput == 'h' and p1.cardCheck() != True or gameInput == 'hit' and p1.cardCheck() != True:         gameInput = input("Hit or Stand? H\S")         gameInput = gameInput.lower()         p1.gameMove(gameInput)         if p1.winCheck(betInput) == 1:             if p1.play() == False:                 pass         p2.winCheck(betInput)   The issue is that when I go to break out of "gameInput" loop (to quit the program), it just breaks out of it and then continues on down the code, is there a way I can have it loop back up to the first while loop? Or, is there a way to just terminate the program right then and there?


Does Counterspell work vs a Mind Flayer's psionic spells?

A mind flayer can cast a few spells, requiring no components. There seems to be two parts to this:   If a spell being cast has no components, would others be even aware that it is being cast at all? Does counterspell work against a psionic spell?


Is the phrase 'request you to send the copy' correct?

I read in this website that request should be with that and a clause, not the one with a to-infinitive. In that sense the phrase Request you to send the copy seems to be wrong. If its wrong what would be correct way?


How should I handle "real time" events in an online strategy game?

Some online strategy games have real time events. For example when you send troops to attack somewhere, the attack happens at the right time in the future. Checking the database again and again to get the list of attacks happening each second would cause heavy load. Is there any technique to achieve this goal?  Another example: You want to attack a village 3 hours away, you send troops and the attack occurs 3 hours later. Should there be an script to check the database at each second to run the query at the specified time?


Extreme point of unit balls, the complex case

I've been trying to determine what are the extreme point of the unit balls of $\ell^1$ and $C[0,1]$.  I think that I cracked the real case (I got for $\ell^1$: $\{e_n\}_{n\in \mathbb N}\bigcup\{-e_n\}_{n\in \mathbb N}$, and for $C[0,1]$ the constant functions $f=1$ and $f=-1$).  I had a little trouble figuring out what should be the answer in case the field is $\mathbb C$. I think it should be (for $\ell^1$) all the $\{e_n\}_{n\in \mathbb N}\bigcup\{-e_n\}_{n\in \mathbb N}\{ie_n\}_{n\in \mathbb N}\bigcup\{-ie_n\}_{n\in \mathbb N}$, and (for $C[0,1]$) the functions $f=1, f=-1, f=i, f=-i$. But I can also see it go to (for $\ell^1$) all the $\{ae_n:|a|=1\}$, and (for $C[0,1]$ all the constant functions $f=a$ with $|a|=1$.  I would like some guidness if possible. Knowing the right answer could help, as well as the intuition behind and maybe some tips on how to get there. Thanks!!


How can I draw this Young tableau with LaTeX?


Is it possible to migrate apps and their data from one unrooted Android phone to another?

I would like to migrate apps and their data from one phone to another without too much faffing around, like:   rooting (very convoluted device specific process with a lot of ambiguity around it and often involving running closed source software from random vendors that you have to believe does the right thing), using app specific backup export/import facilities if at all exist (too manual, seems the only option though).   I am ok with:   using a PC to help facilitate the process, manual copying/pasting files (within reason).   Ideally, I would like to have a process that works something like this:   select apps that I would like to have in their current state on the other phone, bundle them together and store somewhere (external SD card or PC), put that bundle on the other phone and somehow install and recover their state.   A bit like  works.  So far I have tried :    - unfortunately, like many others, requires rooting,  - seemed promising but Helium has never been, nor ever will be, compatible with any device running anything less than Android 4.0 and it does not work on certain phones.  - Q: Does it backup data of apps? A: No, currently it only backup the apk files of apps. and skimmed through a number of articles including  (looks like even if I was willing to root I would have a hard time).


Why is the sum infinite fractions not infinite?

How can I show the following?  $$\sum_{n=1}^\infty \left(\frac{1}{n}\right)^2<\infty$$  Isn't it: $$\sum_{n=1}^\infty \left(\frac{1}{n}\right)^2=\left(\frac{1}{1}\right)^2+\left(\frac{1}{2}\right)^2+\cdots+\left(\frac{1}{\infty}\right)^2=\infty$$


Why are D'Alembert's Principle and the Principle of Least Action Related?

Why do we get the same differential equations from both principles? Surely there is a fundamental connection between them? When written out, the two seem to have nothing in common.   $$\sum _i ( \mathbf F _i - \dot{\mathbf p}_i) \cdot \delta \mathbf r _i = 0$$  $$S[q(t)] = \int ^{t_2} _{t_1} \mathcal L (q,\dot{q},t)dt$$  After playing with d'Alembert's principle  we find that we can rewrite the whole thing as $$\sum _i \left[ \frac{d}{dt} \left( \frac{\partial T}{\partial \dot{q}_i} \right) - \frac{\partial T}{\partial q_i}-Q_i\right] \delta q_i$$  This can further be rewritten under certain conditions so we get the exact form of the E-L equation.   It seems to me that both ways of arriving at the result are fundamentally different.   A function must obey the E-L equations in order to minimize the action over a path, but when we look at the virtual work, it appears that they come from the fact that (quoting Goldstein) "particles in the system will be in equilibrium under a force equal to the actual force plus a 'reversed effective force'."  I think I understand the principle of stationary action, I can see how it leads to the E-L equations, but d'Alembert's Principle seems so arbitrary, I can't see any motivation for it.


Prove that $2xy\mid x^2+y^2-x$ implies $x$ is a perfect square. My work: $2xy\mid x^2+y^2-x \implies x^2+y^2-x=2xy\cdot k$ So,$x^2+y^2+2xy-x=(x+y)^2-x=2xy \cdot (k+1)$ And,$x^2+y^2-2xy-x=(x-y)^2-x=2xy \cdot (k-1)$ I found that for $x,y$ both odd, no solution exists. For $x$ even, and $y$ odd,no solution exists. Solution exists only for $x$ odd, $y$ even and $x$ even and $y$ even solution exists. Cannot do anything more. Please help!


How can I get something like in the figure, where G in the middle is larger than normal letters in math mode?


Can you power a LED with a lower tension but the right current

Can you power a 50w LED that by the datasheet needs 30v and 1.5A with less than 30v but 1.5Amps?


I had been learning calculus. So what I was thinking about is what us differentiation if $(x)!$. I know. 'n 'th derivative of $x^n$ is $x!$ but it isn''t helping me to solve this problem.


Why does work depend on distance and not time?

Imagine there is a train in front of me and I'm on a train following behind pushing with a force of 100 Newtons for one minute. I can't imagine getting twice as tired if the train is moving a 40km/h instead of 20km/h. The only solution I can see is that some of the work the train is doing must be getting included as well. This creates an obvious question - exactly what work is the work that is included here?  Notes:  This question is similar to this , but is different because in my question I am actually doing steady work by continuing to push on the front train.


Given a connected Lie Group $G$ is there a standard method for constructing the metric tensor?  One can of course expand a group element $g=e^{x^ie_i}$ where $e_i$ are basis vectors of the Lie algebra about the identity up to linear order and compute the metric in this manner, but is there a more direct way?   An example would also be appreciated.


When you get the "Your question is ready to publish", allow submitting it from that modal instead of moving to the bottom of the page

As described in , all new questions now go through a workflow that finally leads to the pleasant announcement "Your question is ready to publish!":    I would expect the UI to show a button "submit" just below that box. However, you need to go all the way down to the question to click in "Post your question":    For this, would it be possible to have a button just below the text to allow posting the question? Something like this:


Cubing all elements in a user-entered array

In this problem set, you have to ask the user to enter 10 values, then cube the elements in that entered array and in the end print out the original and final array  This question is not about printing an array, my concerns is how to cube all elements in an array. I tried doing this as shown below but I keep on getting random stuff in output?  public class arraysprob4 {     //raahul marreddy     // have user enter 10 numbers     // find and print the cube's      static Scanner console = new Scanner(System.in);      public static void main(String[]args) {         int newcube[] = new int[10];         int cube[] = new int[newcube.length];         System.out.println("Enter 10 numbers:");          for(int i = 0; i < cube.length; i++) {             cube[i] = console.nextInt();             newcube[i] = cube[i] * cube[i] * cube[i];         }          System.out.println("New Array is:" + newcube);         System.out.println("Old Array is :" + cube);    } }


I created a class in python 2.7. Then I created a subclass of the class that I had created. For defining the init of the subclass, I used the super function, but when I ran it on python, it gave an error message:  class B:     def __init__(self, l):        self.p = l        self.d = len(l) class C(B):     def __init__(self, l):        super(C,self).__init__(l)   When I ran C(l) for some variable l, which i had entered, it showed an error message as shown below:  Traceback (most recent call last): File "<stdin>", line 1, in <module> File "class_sample.py", line 12, in __init__ super(C,self).__init__(l) TypeError: must be type, not classobj >>>


How do I search for a process by name without using grep?

In order to search for a process you can use ps with grep.  For example to search for firefox  ps aux | grep firefox   How to get the same answer without using grep?


Find $\det(A^{2}+A^{T})$ when eigenvalues are $1,2,3$

We have to find $\det(A^{2}+A^{T})$. It is given that eigenvalues of $A$ are $1,2,3$.  My attempt: Since the question implicitly states that the answer would be same for all $A$ with eigenvalues $1,2,3$ we find that the answer is $(1+1)*(2+4)*(3+9)$ by taking $A$ as a diagonal matrix :P  I am unable to prove it for general $A$. Any help will be appreciated.


How many words of length W can be made using an alphabet with L letters.

I was trying with L choose W, but then I don't know if that is enough.


Can we freely switch back and forth between cycles and Blender Render?

If we switch between Blender Render and Cycles Render, do we "obscure" our project?  Or can we freely switch back and forth?


Counting area percentage of overlapping polygons

I have a set of points (meteorological stations) with 5km buffers around them. Additionally, I have a set of polygons (municipalities) in which those stations are located.  I would like to have data on how much of the buffer is filled by each polygon but I was not able to find a function or a way to do it. So for example for point A I would have that in the buffer of 5km there is 80% of polygon B and 20% of polygon C as the output.  Edit:  The anwsers provided do anwser this question in a setting in which I know what polygons and buffers I need to have in the code or when I can do it manualy. Problem is that in my setting with 1 shapefile having 500 polygons and one vector layer having 13000 buffers I am unable to do this manually and I am asking if there is an easier way to do it. I tried implementing the approaches in the questions but I was unable to use them on my example in big scale. Moreover I had problems with coding that I also noted in comments down below.   Main difference to the other similar question provided is that I have 2 vector layers (Buffer with 500 buffers and Municipalities a shape file with 500 different polygons). Previous questions were analyzing this question in situations in which I know precisely the polygons and buffers analyzed, at least that is how I understood them, so after trying to use those approaches on my datasets I was not able to replicate them.  Another way of approaching this problem for me is to use join attributes by location -one-to-many and then getting averages of the duplicate results, only problem is that then I take average of polygons instead of their weights corresponding to % of intersection with the buffer. In my case I do not know what polygons of the shapefile are going to intersect what buffers, or even if the buffer is going to be intersected by 1,2 or more polygons