How to find if x equals any value in an array in javascript
How do I check if an array includes a value in JavaScript?
So why did the price tank all of a sudden and then came back to normal? What does it mean? A search on google for "iphone developer" turns up loads of websites which have "iphone" in them, a trademarked name by Apple.  So I'm led to believe that having a domain such as iphonedeveloper.com is ok? Well, you're still using Apple's trademark, but it would be hard to brand yourself otherwise. You're an IPHONE DEVELOPER... right?  Well, what if I want to provide a website where users pay to get a list of the best offers from Ebay? I might have a domain like ebaydeals.com (I don't... i'm just speculating!).  Now I've heard that places like Ebay are really hot on the trigger and fire out emails to people who register domains like that straight away. But whats the difference?  In both cases I'm making money from the trademark, effectively, so is it just down to how lenient the company who owns the trademark is? Or are there rules? Is there a specific "line" you don't cross?  Thanks Why do we use "dried up" instead of just "dried"? The creek has dried up.   In this example sentence, you should say "dried up." If you say just "dried," it sounds incomplete. Is this an example of an idiom or is there a grammatical rule governing this instance? If so, what is it? FireFox 66 Quantum disabled all my extensions at midnight! This morning I woke up to:    and the FireFox help page doesn't really help...  Help!  What should I do now??? I need NoScript and AdBlock Plus to improve my surfing speed!!! 0:-) How do I build a house for my NPCs? I read on the wiki that people will move in under the following conditions:   You do something to please them An empty house is available with a light source, table, and chair (also with walls).   I have a house which is about 7x8, then a roof space above that; about half the area. I could put furniture up there too, but will anyone move in? Hide iPhone HTML5 video play button Calculating slope in percentage with QGIS I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage. I tried two things:  I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0. The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.  Maybe I need to say that the terrain is pretty plain. What else can I do? Update I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are &quot;normal&quot;, say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything. Update 2 I just  that maybe I have to set the scale to 111120  but that doesn't work neither (result: black, values 0-0). How to find the index of an element in an array in Java? When I type dpkg -l | grep xserver-xorg, I get list of installed packages and their versions:  ii  xserver-xorg               1:7.7+3~deb7u1 ii  xserver-xorg-core          2:1.12.4-6 ii  xserver-xorg-input-evdev   1:2.7.0-1+b1 ii  xserver-xorg-input-kbd     1:1.6.1-1+b1 ii  xserver-xorg-input-mouse   1:1.7.2-3 ii  xserver-xorg-video-radeon  1:6.14.4-8   I am wondering what the number  infront of the colon means, ie the number 2 in 2:1.12.4-6 In Java, is there any way to use the JDK libraries to discover the private classes implemented within another class? Or do I need so use something like asm? Is infinite regress of causation possible? Is infinite regress of causation necessary? For a number of reasons &mdash; including perhaps a desire to feel that we have a complete understanding of where we came from, or at least an understanding which is completely sufficient for all of our purposes &mdash; there is a strong tendency to suppose that an infinite regress of causes and effects is impossible. We see this for instance in the . Traditionally in Greco-Roman influenced philosophy, this prime mover has been identified with the notion of a creator god. A more modern formulation comes from the Big Bang theory, which (although we study the question) happened for no reason that we know of; and perhaps occurred for no reason at all. Indeed, if time is a property of the universe, a good argument can be made that .  At the same time, we have gotten a lot of leverage in science from the ideas that everything happens for a reason, i.e.&nbsp;because it is caused by something else. This is sometimes described as the . Aristotle also applies this idea, except that the first mover is made an exception, something which exists literally for no reason. Indeed, the emotionally negative way that "no reason" is used in common speech, as something groundless and irrational, indicates how widespread the feeling is that the idea of uncaused events is deeply dissatisfying.  Almost all of our modes of critical thinking are infused with both of these ideas: that we may work from first principles, a definite starting point, counting up from zero (or one, historically); but also that we may trace the causes of things to some point, and then later ask how that starting point came to be. But the two ideas are themselves in conflict.  Which is true &mdash; that infinite causal chains are impossible? Or that they are necessary? Or are they perhaps possible without being necessary?   Related questions: Show that for $\eta > 0$, $\alpha_\eta=-\infty$ and for the Cauchy problem $z'=x-z^2,z(0)=\eta$ the saturated solution is defined up to $+\infty$. We consider the differential equation $y'=x+y^2$ and for any $\eta \geq 0$ we denote by $\phi_\eta:(\alpha_\eta,\beta_\eta)\rightarrow\mathbb{R}$ the unique saturated solution of the Cauchy Problem $y'=x+y^2$, $y(0)=\eta$. I am required to do the change of variable $z(x)=y(-x)$ and I succeded here, obtaining $y'(-x)=y^2(-x)-x$ and so $z'(x)=x-z^2(x)$, then I was required to represent the $0-isocline$ and it was also simple as I obtained a parabolla and also I was required to write the equation of the tangent in the point $(0,\eta)$ which was also pretty simple as I obtained $\phi'_\eta(0)=\eta^2$ and the equation of the tangent is $y=\eta+\eta^{2}x$. Now, I am required to find $\phi^{(5)}_0(0)$( that $5$ indicates the number of differentiations), which puzzles me as I don't know the form of the solution and if it can be found out and also I am told to show that $\frac{1}{\eta}\geq\beta_\eta$ What I did not prove after the first edit : and that for $\eta &gt; 0$, $\alpha_\eta=-\infty$ and for the Cauchy problem $z'=x-z^2,z(0)=\eta$ the saturated solution is defined up to $+\infty$. At this last ones I am lost. Any help, please? Edit: I have passed beyond finding $\phi^{(5)}_0(0)$ and I think I did show that $\frac{1}{\eta}\geq\beta_\eta$, now it remains to prove the last questions. Where are all islands and discoverable locations? After taking off in Simpleplanes and flying around over the ocean for a while, I've found a lots of tiny islands all over the place, and a few really big ones that unlock new spawn locations once found.  Large islands appear to also have many discoverable 'locations' around them as well, like airports, carriers, or landmarks.  These locations automatically become available as start points once discovered.  Where can I find all of these major islands, and once there, where should I look to unlock all of the locations? How do I restore an accidentally deleted initrd image? Should I test private methods or only public ones? Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output: Nested regression model How to change the list of file types which Safari will open immediately after download? Evolutionarily speaking, why do humans have 46 chromosomes I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?