Decimal places float
Limiting double to 3 decimal places
Single word which means "keep moving forward" I need a single word which means "keep moving forward". What are my options?  I need word as   persevere Be persistent, refuse to stop  cognizant (sometimes followed by 'of') having or showing knowledge or understanding or realization or perception  [] keep moving forward  I want to make meaningful name for firm  please help me Why are there folders in /Users of already deleted users? Why is Ubuntu 14.04 so slow on my laptop? Script Tag Error - Aura Lightning Component I have installed Ubuntu subsystem on Windows 10 (after enabling feature in settings), but where is the Ubuntu file system root directory located in the drive? Statistics  () In Q1 of 2012 - 0.0134 such comments per question (~1.33%) In Q2 of 2012 - 0.0167 such comments per question (~1.66%) In Q3 of 2012 - 0.0169 such comments per question (~1.68%) In Q4 of 2012 - 0.0193 such comments per question (~1.92%) In Q1 of 2013 - 0.0223 such comments per question (~2.22%)  The vast majority of these questions need serious help.  Unfortunately, there is a growing trend towards abuse Along with the good, comes some bad -- as usual in life. These comments are bad when  Posting &quot;what have you tried&quot; multiple times per question is severely obnoxious Posting &quot;what have you tried&quot; when the user has clearly shown that they have tried to solve it on their own  It is becoming increasingly common to see &quot;what have you tried?&quot; comments in these scenarios. Some examples     Workarounds Flagging Comments - It is considered a good thing to be liberal with comment flagging -- that helps us clean up after the fact. &quot;Too Chatty&quot; is a no-brainer here. Unfortunately, that only cleans up after the damage has been done. All signs point toward the continued increase of the trend of using &quot;what have you tried&quot; comments. I spend a lot of time editing and cleaning up bad questions. This trend came up on my radar toward the end of last year and it is getting worse. So, I thought at the very least that I'd raise some awareness. Proving any number of the form $2^n$ can't be written as the sum of k consecutive numbers. I think i have proved that any number of the form $2^n$ can't be written as the sum of k consecutive positive integers, but i would be grateful if i could have some clarification as to whether this is a correct and valid proof or not.  Let $g=x+(x+1)+(x+2)+(x+3)+...+(x+(k-1))$, hence g is the sum of k consecutive positive integers.  $g=kx+\sum_{d=1}^{k-1}d$  Hence, $g=kx+\frac{k(k-1)}{2}$  Rearranging for x we find, $x=\frac{g}{k}-\frac{(k-1)}{2}$  So, for certain values of $k$, we can be sure that a positive integer value of $x$ can be found, and hence $g$ can be written as the sum of $k$ consecutive positive integers.There are two cases for $k$ to considor:  Case 1)  $k$ is odd. If $x$ exists, it must be the case $k$ | $g$, as for odd values of $k$, $\frac{(k-1)}{2}$ will alwyas be an integer, and hence $x$ will.  Case 2)  $k$ is even. $k$ does not divide $g$, but $\frac{g}{k}$ must be a multiple of $\frac{1}{2}$, and hence equals $\frac{h}{2}$, for some odd $h$.  Letting $j=2^n$, assume that we can write $j$ as the sum of $k$ consecutive positive integers.  If $k$ is odd, then if a $k$ exists, it must divide $j$, by Case 1. But, $j$ has no odd factors as it is a power of two, hence $k$ could not be odd.  If $k$ is even, by Case 2 it mut be the case $k$ does not divide $j$. Also, $\frac{j}{k}=\frac{h}{2}$, for some odd $h$.  But, this implies $2j$ has an odd factor, $h$. but, as $2j$ is a power of $2$, it can't have odd factors. So, $k$ can't be odd.  Hence, $k$ is neither odd or even, and this is a contradiction to our assumption. Hence no $x$ exists, and hence and number of the form $2^n$ can't be written as the sum of $k$ consecutive positive integers.  Any feedback on this proof would be appreciated. Browsing Quora, I saw the following  with contradicting answers.  For the :     The bits are represented by certain orientations of magnetic fields   which shouldn't have any effect on gravitational mass.   But,  contradicts that one:     Most importantly, higher information content correlates with a more   energetic configuration and this is true regardless of the particular   type of storage... Now, as per Einstein's most famous formula, energy   is equivalent to mass.   Which answer is correct? Derivative of the product of operators and Derivative of exponential I'm asked to show that  $$\frac{d(\hat{A}\hat{B})}{d\lambda} ~=~ \frac{d\hat{A}}{d\lambda}\hat{B} + \hat{A}\frac{d\hat{b}}{d\lambda}$$ With $\lambda$ a continuous parameter. Should I use the definition $$\frac{d\hat{A}}{d\lambda} ~=~ \lim_{\epsilon \to 0} \frac{\hat{A}(\lambda + \epsilon) - \hat{A}(\lambda)}{\epsilon}$$ applied to $\hat{A}\hat{B}$ like $$\frac{d(\hat{A}\hat{B})}{d\lambda} ~=~ \lim_{\epsilon \to 0} \frac{\hat{A}(\lambda + \epsilon)\hat{B}(\lambda + \epsilon) - \hat{A}(\lambda)\hat{B}(\lambda)}{\epsilon}$$ and do some algebra to get the RHS of the first equation, or I'm missing something? Another interesting derivative to pay attention to is: $$\frac{d}{d\lambda}\exp(\hat{A}(\lambda) )~?$$ Transit Visa for Thailand Dynamic single-line printing in Python (time?) $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2\operatorname{rank}(T^2)$ for finite-dimensional $V$ How to disable Spotify indicator in the top panel? The Spotify indicator icon clashes with the native Unity theme, and is redundant, since it is already listed in the Sound indicator menu. Is there a way to remove or disable the Spotify indicator? Or at least to change the icon (couldn't grep it on my filesystem). I am using the Spotify "preview" with 12.04. Thanks! How do I bulkify queries for directly or indirectly related records? This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, navigate to the  tag. This question and answer is owned by the community! If you can improve it and make it more useful, you're welcome to edit it. I have a collection of records, like a List&lt;sObject&gt; or the Trigger.new context variable. I need to query other records that are related to these records either directly or indirectly, and I want to use the related data to make further updates. When I write a query in a loop, like for (Account a : Trigger.new) {     Account parent = [SELECT Name FROM Account WHERE Id = :a.ParentId];     // ... }  I keep hitting Salesforce query limits, and I know this is not best practice. What can I do to avoid this problem and bulkify my code? How many keys does the Playfair Cipher have? Which race in Star Trek universe was the first to invent Warp technology? Humans look like late member of Warp Drive community. Klingons were capable of interstellar travel from the time of Kahless. Vulcans were in contact with Andorians from ancient times (ST: Enterprise).  Which one first invented warp capabilities: Klingons or Vulcans? Or, others? Does a character with 10 Constitution only need to eat every 4 days? According to the food rules,     A character can go without food for a number of days   equal to 3 + his or her Constitution modifier (minimum   1). At the end of each day beyond that limit, a character   automatically suffers one level of exhaustion.   A normal day of eating resets the count of days   without food to zero.   According to this, a character with a Constitution modifier of 0 can eat normally every 4th day*, and get no penalties from hunger despite only eating twice a week. This seems a tad ridiculous, and I'm wondering if there are other rules that I'm missing that make it a bad idea to eat less often like this, or if eating every 4th day is a totally fine thing to do, by the rules.  * They can get away with four days, because they'll only get the exhaustion penalty if they don't eat by the end of the fourth. This is even assuming the 'minimum 1' doesn't apply to the con mod portion. How can I install updates and shut down from the command line? I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?   For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt? Using bm with eulervm gives inconsistent ‘’ characters I prefer to use bm package to bold math. However, I noticed that when used with eulervm, this gives inconsistent results for ‘&lt;’ and ‘>’ characters.  I wonder what causes it and can the usage bm be fixed to get proper ‘&lt;’.  \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  %\usepackage{amsmath}  \usepackage[euler-digits,euler-hat-accent]{eulervm}  \usepackage{bm}  \begin{document}      \texttt{\hphantom{mathbold}\llap{bm}}: \quad $ 1 + 1 &lt; 3; \quad \bm{1 + 1 &lt; 3} $      \texttt{mathbold}: \quad $ 1 + 1 &lt; 3; \quad \mathbold{1 + 1 &lt; 3} $  \end{document} How to uncover a table column wise in Latex beamer I have a table with 7 columns and want to show the first 5 at once, and then  the 6th and 7th on consecutive slides.  This is the code I have for now:  \begin{frame}{Наслов}     \begin{itemize}         \item Ставка.     \end{itemize}         \begin{tabular}{ccccc&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide}c}             $p_1$ &amp; $p_2$ &amp; $\ldots$ &amp; $p_{9}$ &amp; $p_{10}$ &amp; $W$  &amp; $D$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $1$     &amp; $w_1$&amp; $d_1$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $0$     &amp; $w_2$&amp; $d_2$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_3$&amp; $d_3$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_4$&amp; $d_4$\\             $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$\\             $0$   &amp; $0$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_{1023}$&amp; $d_{1023}$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_{1024}$&amp; $d_{1024}$         \end{tabular} \end{frame}   This produces 2 slides: the first one with p1, p2, ..., p9, p10 and D columns, and the second with W added, while I want them to appear in the following order:   1st slide: p1, p2, ..., p9, p10  2nd slide: p1, p2, ..., p9, p10, W 3rd slide: p1, p2, ..., p9, p10, W, D   I looked in the manual and found this example:  \begin{frame}     \begin{tabular}{l!{\vrule}c&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide&lt;3-&gt;}c&lt;{\onslide&lt;4-&gt;}c&lt;{\onslide}c}     Class &amp; A &amp; B &amp; C &amp; D \\     217     X &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\     Y &amp; 3 &amp; 4 &amp; 5 &amp; 6 \\     Z &amp; 5 &amp; 6 &amp; 7 &amp; 8     \end{tabular} \end{frame}   which does what is supposed to. However, I don't seem to be able to apply its logic to my problem. :( Is anyone willing to help?   P.S. What are the meanings of &lt; and ! in columns specification?