I am trying to make conditions in for loop but i think it is not working for some reason
How do I compare strings in Java?
Is it bad behavior to add filler words such as "so", "um" in business speak? Omitting "is", like in "I think it strange" What is the grammar behind the construction "I think it strange/necessary that ...", and when can and cannot this apparent omission of the copula be used? Do we always need the "that" clause?  Also, this seems to be only allowed when the object is a pronoun (it in the above example). That is, we don't say "I think this method strange", correct? If we have a real valued function $f$ continuous at some point $a$, is it necessarily true that $f$ is Riemann integrable on the interval $[a - \delta, a + \delta]$ if a $\delta &gt; 0$ exists? Induction with floor, ceiling $n\le2^k\implies a_n\le3\cdot k2^k+4\cdot2^k-1$ for $a_n=a_{\lfloor\frac{n}2\rfloor}+a_{\lceil\frac{n}2\rceil}+3n+1$ I think my MacBook Pro battery was replaced by Apple's service team. How do I check that? I handed my MacBook Pro (15" Touch bar) to the service centre in order to have the keyboard replaced. Now, when I check the battery cycle count, it shows "1". Before it was at "82".   Also, I'm getting a battery life of only 4.5 - 5 hours now.   Is there a way to find if my battery was replaced or not? How can I chroot sftp-only SSH users into their homes? A curious integral The following integral has been on my mind for a while $$\int_0^\infty \frac{\sin(x)}{e^x-1}\,\mathrm d x \tag{$\dagger$}$$    Let us indicate the integrand as $f(x)=\frac{\sin(x)}{e^x-1}$. The following are a couple of observations.   The integrand can be extended by continuity in $0$ since $$\lim_{x\to 0}f(x)=\lim_{x\to 0}\frac{\frac{\sin(x)}{x}}{\frac{e^x-1}{x}}=1$$ This is the original reason I started playing around with this integral. Mathematica yields the result $$\int_0^\infty \frac{\sin(x)}{e^x-1}\,\mathrm d x=\frac{\pi}{2}\textrm{Coth}(\pi)-\frac 12 \approx 1.076674047$$ which, following numerical evidence, seems correct. Complex analysis may be useful here, since the integrand is a holomorphic function on $\mathbb C$. I tried writing $\sin(z)=\frac{e^{iz}-e^{-iz}}{2i}$, but I was not able to find an appropriate integration contour to solve the problem. The $-1$ in the denominator breaks the simmetry of the expression. This made most of my substitutions useless.   Can this integral be evaluated correctly, preferrably through complex analytic methods? I have a login called user1. user1 can execute stored procedure [Test].[SP1]  EXEC [Test].[TestSortation] EXEC [TestSortation]   Both of the above commands work.  Now if I give the user1 the server role of sysadmin in addition to public. the later of the 2 statements above fails, and throws this error:     Could not find stored procedure 'TestSortation'.   I don't want to have to change every stored procedure in the database to have the schema name included with EXECute commands manually. Can someone explain to my why this is happening. Also, is there a way to get around this, automatically fix my stored procedures, have the schema default to [Test]? Solve the second order ODE $(2x^2 + 1)y'' − 4xy' + 4y = 0$ I need help solving this past exam question, the professor posted exam questions with out solutions to last year's exam, I tried reduction of order, however that seemed to complicate things. And then I tried Euler-Cauchy method however I realized that won't work due to the $(2x^2 + 1)y''$.  Given $y_1=x$ is a solution $$(2x^2 + 1)y'' − 4xy' + 4y = 0$$ Find the second solution $y_2$ for equation. How to replace ${} placeholders in a text file? I want to pipe the output of a "template" file into MySQL, the file having variables like ${dbName} interspersed. What is the command line utility to replace these instances and dump the output to standard output? Sum and Product of Infinite Radicals Hi I can compute a Basic Loan Amortization Schedule, But now I'm trying to Calculate a Seasonal Loan Amortization Schedule . So for example A loan starts at January And Will go on for 3 years, with Monthly Payments. Interest is at 3% Annually and is compounded Annually. During the months of September, October, November, December It'll only accumulate Interest But no payments and principal. Principal is 100000. How Do I calculate Payments and interest. I have a Non Root User abc and want to give the user sudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so?     I would like to do the same to usergroup too!! Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application. Background My application consists of a Winforms UI, a backend WCF service and a website to publish content to the UI and other consumers. To prevent the situation where the UI starts up and fails to work properly because of a missing WCF service or website being down I have added an app startup check to ensure that all everything is alive. The application is being written in C#, .NET 3.5, Visual Studio 2008 Current Solution Currently I am making a web request to a test page on the website that will inturn test the web site and then display a result. WebRequest request = WebRequest.Create(&quot;http://localhost/myContentSite/test.aspx&quot;); WebResponse response = request.GetResponse();  I am assuming that if there are no exceptions thown during this call then all is well and the UI can start. Question Is this the simplest, right way or is there some other sneaky call that I don't know about in C# or a better way to do it. How can I add vertices to intersection of two edges? I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed. I'm stuck on a question which asks to prove that any continuous integer-valued function of a real variable is constant. In my lecture notes we are told that a map is continuous if the preimage of any open set is open.  How do I use this to answer the question? A full answer would be greatly appreciated as I can't seem to figure out how to solve it in my  notes, in analysis books or anywhere online. Is there a way to increase space between bibliography without using biblatex? Suppose $A$ is a general $n \times n$ matrix and $B$ is obtained by interchanging two rows of $A$. Prove that $\det(B) = -\det(A)$ Suppose that $A$ is a general $n \times n$ matrix and $B$ is obtained by interchanging the first two rows of $A$. Prove that $\det(B) = -\det(A)$.  By general $n \times n$ matrix, I mean $$\left[\begin{matrix} a_{11} &amp; a_{12} &amp; \cdots &amp; a_{1n} \\ a_{21} &amp; a_{22} &amp; \cdots &amp; a_{2n} \\ \vdots &amp; \vdots &amp; \ddots &amp; \vdots \\ a_{n1} &amp; a_{n2} &amp; \cdots &amp; a_{nn} \end{matrix} \right]$$ I'm thinking of using the cofactor expansion of the 2nd row of the first matrix, yielding $$ \det(A) = c_{21} a_{21} + c_{22} a_{22} + \cdots+ c_{2n} a_{2n}  $$ which will be positive or negative depending on $n$ and the values of $a_{21}, \ldots,a_{2n}$, and using the same on the first row in matrix $B$ to get $c_{11} a_{21}$ etc. and then use the fact that the power of the $c$ subscripts will alter $\det(B)$ to be the opposite sign, but I'm not sure how to express all of this mathematically in a proof directly. Help please? Fill cylinder cap with quads Is there any way of converting the triangle fan found on a cylinder cap into quads. I'd like to remove my phone number from my iMessage account, but still have my phone enabled to receive messages sent to my email address (also used on iPad, Mac). Is there a way of doing this?