multiply Bigdecimal and int generating error
How to multiply a BigDecimal by an integer in Java
When is the present perfect tense used instead of the past tense? What are the most commonly used and basic Apache htaccess redirects? This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to finding information that is that is covered by the question should be closed as a duplication of this question. .  Whats the point in this question? The idea while not perfect is catch the most commonly asked questions regarding redirects using the  htaccess on the Apache platform either on  some type of lamp or a live server. The type of answers should be generally those that you could imagine are used by 100,000’s of sites world-wide and are constantly asked here at Pro Webmasters repeatedly over and over in various forms.  A few examples of the type of answers we are looking for:   How can I redirect non-www to www? How can I redirect a sub domain to the main domain? How can I redirect a sub folder from domain to a root or a subdomain?  How can I redirect an old URL to a new URL?   A few examples of the types of answers that we are not looking for:   Answers that do not involve a redirect. Any answers relating to NGinx, IIS or any other non-Apache platform. Answers that involve custom and complex string or query removals.   Resources for Advanced to Complex Mod_Rewrite Rules:      Please note: that this question is still in construction and may need some refining either by myself or a real moderator of Pro Webmasters, if you have any concerns or questions . Label rows of a matrix by characters How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix       \[     \begin{array}{lc}       \ Mat_{\varPhi to M} &amp; \left(\begin{array}{@{}ccccc@{}}             1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 \\             0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 \\             0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 \\             0 &amp; 0 &amp; 0 &amp; 1 &amp; 1 \\             0 &amp; 0 &amp; 0 &amp; 0 &amp; 1               \end{array}\right) \\[15pt]     \end{array}     \] Explanation that air drag is proportional to speed or square speed? A falling object with no initial velocity with mass $m$ is influenced by a gravitational force $g$ and the  (air resistance) which is proportional to the object's speed. By Newton´s laws this can be written as:   $mg-kv=ma$ (for low speeds)  $mg-kv^2=ma$ (for high speeds).    I assume that $k$ is a positive constant that depends on the geometry of the object and the viscosity. But how can one explain that the air resistance is proportional to the velocity? And to the velocity squared in the second equation? Binary classification with strongly unbalanced classes Will my checked luggage freeze in the airplane? I'm taking some freeze-sensitive items in a checked luggage for a short flight. It's cheese, chocolate, toothpaste and wine. I would like to know whether the luggage can get "frozen" in the aircraft. Sometimes it happened to me that my stuff actually was quite cold after the flight, so I'd like to be quite sure. Especially the cheese was really expensive and freezing it would very likely demage it.  Usually I pack everything well in clothes, but this time the things are just too many so it's tough to do more than just protect the wine from breaking.  Some details: It's an A320 flight taking 1.5 hours, with Czech Airlines, from Paris CDG to Prague PRG. Give a sequence such that root test works while ratio test fails Draft watermark image just in a \section Is it possible to have a draft watermark only in a \section?  EDIT:  I have in a document more then one \section, and I need the draftwatermark just in some \section. Unfortunately the section with and without the draftwatermark share the page. For example I want the draftwatermark under the text of just one of these sections A,B,C  \documentclass{article}  \usepackage{kantlipsum} % supply mock text  \begin{document}  \section{A}  \kant[2]  \section{B}  \kant[2-4]  \section{C}  \kant[2]  \end{document} No route matches "/users/sign_out" devise rails 3 Showing that $\frac{\sqrt[n]{n!}}{n}$ $\rightarrow \frac{1}{e}$ Show:$$\lim_{n\to\infty}\frac{\sqrt[n]{n!}}{n}= \frac{1}{e}$$  So I can expand the numerator by geometric mean. Letting $C_{n}=\left(\ln(a_{1})+...+\ln(a_{n})\right)/n$. Let the numerator be called $a_{n}$ and the denominator be $b_{n}$ Is there a way to use this statement so that I could force the original sequence into the form of $1/\left(1+\frac{1}{n}\right)^n$ Divergence of $\sum_{n=1}^{\infty} \frac{1}{2+i^n}$? I notice that,  $i^n = i, \quad if \text{ } n \equiv \text{ } 1 \text{ } mod \text{ } 4$  $i^n = -1, \quad if \text{ }n \equiv \text{ } 2 \text{ } mod \text{ } 4$  $i^n = -i, \quad if \text{ }n \equiv \text{ } 3 \text{ } mod \text{ } 4$  $i^n = 1, \quad if \text{ } n \equiv \text{ } 0 \text{ } mod \text{ } 4$  so the series $\sum_{n=1}^{\infty} \frac{1}{2+i^n}$ seems to be an alternating series that does not converge to any point in the complex plane. Is there a rigorous way to prove this divergence? How would you write a proof to this divergence or convergence (if I am wrong)?  Thanks! What is the command to truncate a SQL Server log file? I need to empty an LDF file before sending to a colleague.  How do I force SQL Server to truncate the log? Linear transformation of a binomial random variable? Let $X$ be a binomial random variable with parameters $n$ and $p$. Next, let: $$ Y = aX + b $$ I know that: $$ \mathbb{E}[Y] = \mathbb{E}[aX+b] = a\mathbb{E}[X] + b = anp + b \\ \text{Var}(Y) = \text{Var}(aX+b) = a^2 \text{Var}(X) = a^2np(1-p) $$ But how is $Y$ distributed? how to remove frost free outdoor faucet drain valve assembly I've tried unscrewing the part outlined in red below. No dice. Do I just need to remove the whole rod (above the red outline) and replace it?) If so, can anyone point me to instructions for them.  I can't see in there. Worried that I'll pull it out and not be able to put it back in.  (The deeper I go in the plumbing the more things I find that there is no modern fitting-part :)  My new assembly  replaces the parts outlined in red. the new assembly has a female thread. I am HOPING that the thicker part of the pipe (just above the black "collar" stopper)  is screwed onto the pipe above.  However, I cannot unscrew it. There is nothing to get a hold of. It's perfectly round. I've tried dw40, and let it sit for 20 minutes. No love.  I'll try wacking it with a board in the direction along which it moves in when it screws (perpendicular to the threads per [this answer][2]) Maximum number of edges in a simple graph? I found that the maximum number of edges in a simple graph is equal to $$\sum\limits_{i=1}^{n-1} i$$  Where $n =$ number of vertices.  For example in a simple graph with $6$ vertices, there can be at most $15$ edges.  If there were any more edges then $2$ edges would connect the same pair of vertices and thus would not be a simple graph.  Is this a known theorem? What could happen if I use 2 cycle fuel in a 4 cycle engine? First off, this is NOT to be confused with the following question:    2 cycle oil is used for my weed eater. There is no way I could use a whole gallon in a year.  Sometimes I run out of gasoline for my 4 cycle lawn mower, and that 2 cycle mix fuel is sitting there getting really old.  If I run that in the lawn mower, am I simply going to create extra pollution or could the 2 cycle fuel cause any damage to the 4 cycle engine? $f:\mathbb R\to\mathbb R$ continuous function. Which of the following sets can not be image of $(0,1]$ under $f$? Let $f:\mathbb R\to\mathbb R$ continuous function. Which of the following sets can not be image of $(0,1]$ under $f$?          A. $\{0\}$.          B. $(0,1)$.          C.$[0,1)$.          D.$[0,1]$.      My effort: Continuous image of connected set connected. $(0,1]$ is connected and remove $1$ from the set left the set connected...but removing any point from $(0,1)$ make it disconnected.....I am not sure though I remember watching this one show when I was a kid in the 80's/early 90's in Canada. It was a live-action show about these two kids and had some puppet/muppet-like characters, but it kind of had a dark/mysterious element to it. I can't remember too much about it except portions of some episodes, but the main characters were kids, and they had some mysterious artifact (kind of like a compass?) that took them to this other world where there were giants and other mysterious beings that we rarely saw. The two kids weren't the only one's going to this place either, they find out kids from all around the world that also had this same artifact (and they all fit together like a round puzzle?). I seem to recall that the giants in this other world were the ones who made the artifacts, and were dying/or in desperate need of the help of the kids.  A couple episodes I remember:   There was one where the leaves were falling, and the world was doomed to end as soon as the last leaf touched the ground, so they're trying to figure out how to prevent all the leaves from falling, but after a long and suspenseful episode (for a kid) the last leaf dramatically falls, but out of no where the main girl catches the leaf and saves the world (it was very exciting for my young self, and I remember being very impressed with the pretty girl for thinking to catch the leaf).     There was another episode where the kids meet these two old guys with long white hair (muppets) sullenly working in a mine/tunnel, they're in tattered old clothes working away with their pick axes or hammers and they are connected to each other at the beard. This long old white beard grows out of one of their faces right into the other's. The kids save the day by cutting the old guy's beard in the middle, freeing them from each other. They celebrate being free from their bonds and excitedly thank the kids, but after the kids leave they continue to work away, this time in much brighter spirits. Seemingly unbeknownst to them though, as they work, their beards slowly and subtly grow back together.   Anyone else remember this show? How to get from Nice to Monaco by public transport? What's the simplest and cheapest way to get from central Nice, France to Monaco by public transportation? I've been wondering about this one for a while; I find it a little weird how abruptly it happens. Basically, why do we need just three uniforms for $Z_n$ to smooth out like it does? And why does the smoothing-out happen so relatively quickly?  $Z_2$:     $Z_3$:    (images shamelessly stolen from John D. Cook's blog: )  Why doesn't it take, say, four uniforms? Or five? Or...?