Can't access GeoServer after CORS filter To enable CORS filter I added the following in web.xml file in webapps/Geoserver/WEB-INF  &lt;filter&gt;  &lt;filter-name&gt;cross-origin&lt;/filter-name&gt;  &lt;filter-class&gt;org.eclipse.jetty.servlets.CrossOriginFilter&lt;/filter-class&gt;    ...  &lt;filter-mapping&gt;     &lt;filter-name&gt;cross-origin&lt;/filter-name&gt;     &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/filter-mapping&gt;   After adding above, I restarted GeoServer. Now, when I access GeoServer, I get following error:  HTTP ERROR: 503  Problem accessing /geoserver/. Reason:  Service Unavailable
Enabling CORS in GeoServer (jetty)? I hope somebody has already figured this one out. I just installed Geoserver 2.9 on a vanilla Ubuntu 16.04 distro. The Geoserver 2.8 method of enabling CORS with the shanbe.hezoun class does no longer work with Jetty 9.2.13.  There are mentions that CORS support is already packaged with Jetty 9.2.13 in the jetty-servlets.jar.  The Jetty lib which is compiled with Geoserver contains a jetty-servlet-9.2.13.v20150730.jar in geoserver/lib but not jetty-servlets.9.2.13.v20150730.jar. Are these supposed to be the same jar with a different name?  It should be possible to enable CORS either in geoserver/etc/webdefault.xml or in geoserver/webapps/geoserver/WEB-INF/web.xml.  My understanding is that the webdefault.xml is applied first and the web.xml thereafter.  I have tried following filter in both xml. I haven't got as far as adding a filter mapping. Adding the filter alone will cause the Geoserver/Jetty service to not start proper.  &lt;filter&gt;     &lt;filter-name&gt;cross-origin&lt;/filter-name&gt;     &lt;filter-class&gt;org.eclipse.jetty.servlets.CrossOriginFilter&lt;/filter-class&gt; &lt;/filter&gt;
How do I help my third-grader focus on homework? My child just entered third grade, and the homework load is much higher this year, with a lot of writing and math drills. It is all work that she can do easily, but it's causing the whole family a lot of pain, because she's have a really hard time just sitting down and doing it — asking many questions about things she clearly actually knows, and getting distracted by the smallest thing going on around her. (Setting up a special quiet area isn't helping, because the distractions could be her pencil or a sudden burst of word association based on something in the lesson.)  So, a page of writing and a couple of pages of math which could be done in fifteen minutes total is taking an hour and a half. She can easily explain the reasoning behind the math problems, but when it comes to writing down what she just said, it's like pulling teeth. She'll slowly write a word, sounding it out in slow motion as she writes each word. And she'll say that she doesn't understand a question, but when she actually gets her mind pointed at it, she can write a great answer. And she's clearly picking up the concepts in class; I have no doubt that she actually understands, which is part of our frustration.  My wife feels like she's just wanting attention, but I think it's more about our daughter's own ability to focus. We both feel that sitting down and working painfully through each question isn't really helping her. That works, but my wife feels like it's just rewarding the behavior, and I feel like it's not really helping her learn any better focus on her own, which, you know, she'll need in actual life. And, we're happy to spend child with our kid, this pretty much the opposite of quality time.  Neither rewards or consequences seem to have any effect, and nor do charts. All of those things basically just seem to add another layer of complication, distraction, and misery. What else can we do? A closed form for the sum $S = \frac {2}{3+1} + \frac {2^2}{3^2+1} + \cdots + \frac {2^{n+1}}{3^{2^n}+1}$ is ... How to show $\lim_{n \to \infty} \sqrt[n]{a^n+b^n}=\max \{a,b\}$? Electric potential is related to Electric Field by negative integral of Field with distance.If charges move away from the positive terminal (Assuming conventional flow) why is there no drop in electric potential even though the charges are moving in the direction of electric field?  Some of the answers I read for the similar question said that the electrons in wires rearrange themselves in a way to make the electric field uniform in the wire.However,this doesn’t explain the absence of potential drop in the wires (due to electric field) since the field is still there. Associativity of symmetric difference of sets By $A\oplus B$ we denote the symmectric difference of two sets. The definition is $A\oplus B =(A\setminus B) \cup (B\setminus A)$. Now I hope to show that $A\oplus (B\oplus C) = (A\oplus B)\oplus C$. I remember that there's an elegant proof, but I forget its detail. (The first step is to show $A\oplus (A\oplus B) = B$, and maybe applying this formula, we can obtain associativity.) Evaluate definite interval of normal distribution I know that an easy to handle formula for the CDF of a normal distribution is somewhat missing, due to the complicated error function in it.  However, I wonder if there is a a nice formula for $N(c_{-} \leq x &lt; c_{+}| \mu, \sigma^2)$. Or what the "state of the art" approximation for this problem might be. How did "sinister", the Latin word for "left-handed", get its current meaning? Sinister is the Latin word for left-handed.  What evolution of meaning turned left-handed into evil and threatening? If $f'(c)$ exists then $\lim_{x\to c} f(x)=f(c)$ If $f'(c)$ exists then $\lim_{x\to c} f(x)=f(c)$   My attempt is below. Did I do wrong? Since I don't really understand it. I thought $f'(x) = f'(c)$ so $f'(x)-f'(c)=0$. Am I on the right track? Many thanks!  \begin{align} f(x)-f(c)&amp;=\frac{f(x)-f(c)}{x-c}\cdot(x-c) \\ \lim_{x\to c}[f(x)-f(c)]&amp;=\lim_{x\to c}\left[\frac{f(x)-f(c)}{x-c}\cdot(x-c)\right] \\ \lim_{x\to c}[f(x)-f(c)]&amp;=0 \\ \lim_{x\to c} f(x)&amp;=f(c) \end{align} How do I set a default host for nginx? I'm trying to figure out how to set a default host for my nginx installation. I found this article in the nginx Wiki:    Unfortunately, this doesn’t work. After restarting I get this:  Restarting nginx: nginx: [emerg] unknown directive "http" in /etc/nginx/sites-enabled/catchall:1 nginx: configuration file /etc/nginx/nginx.conf test failed   After removing the http directive I get this:  Restarting nginx: nginx: [emerg] unknown log format "main" in /etc/nginx/sites-enabled/catchall:7 nginx: configuration file /etc/nginx/nginx.conf test failed   I’m on Ubuntu 10.04.3 where I’m using the official nginx PPA. Version 1.0.9 of nginx is running. $\lim_{h\to 0}\int \frac{f(x+h)-f(x)}{h}\,\mathrm{d}x = f(b)-f(a)$ Let $f:[a,b]\to  R$ be integrable and continuous on $(a,b)$. Prove that: $$\lim_{h\to 0} \int_a^b\frac{f(x+h)-f(x)}{h} \,\mathrm{d}x = f(b)-f(a).$$  What I've tried so far: make a change of variables, which didn't help. I also thought of using the intermediate value theorem inside the integral, but the function being differentiable is not specified. Any help, tips? Thanks in advance! How to use find command to search for multiple extensions I can get all jpg images by using:    find . -name "*.jpg"     But how can I add png files to the results as well? I'm running Fedora 25 and I need to take a few particular screen captures so I've read that shutter is a great tool for that. Sadly I am unable to use it for some reason. Whenever I try to take a screenshot this is the result: A positive integer $n$ is called a balancing number if  $$1 + 2 + \cdots + (n − 1) = (n + 1) + (n + 2) + \cdots + (n + r) \tag{1}$$  for some positive integer $r$.     Problem: Find the general solution (closed-form expression) of equation $(1)$, in other words, find $f_1(m)=n, f_2(m)=r$ where $f_1, f_2$ are solution of $(1)$ for any integer $m \in \mathbb Z$.   I have asked a  with a constrain involving Pell's equation. Given   $$ f_{XY}(x,y) = \frac{1}{2\pi \sqrt{1-\rho^2}} \exp \left( -\frac{x^2 +y^2 - 2\rho xy}{2(1-\rho^2)} \right) $$  $Y = Z\sqrt{1-\rho^2} + \rho X$  And   $$ f_{XZ}(x,z) = \frac{1}{2\pi } \exp \left( -\frac{x^2 +z^2}{2} \right) $$  Show that $P(X&gt;0,Y&gt;0)= \frac{1}{4}+\frac{1}{2\pi}(\arcsin \rho) $  I'm supposed to use the fact that X and Z are independent standard normal random variables, but I don't quite understand how. Any help would be greatly appreciated. /testfor for item enchantment What I have now is:  /testfor @a {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"diamond_pickaxe"}]}   How can I use the /testfor command to test a specific slot for a specific item that is enchanted? In the previous version the logout button is under your username, which it can be found by clicking the down arrow. However, in the new version, after a couple minutes of searching, it is under the "site-switcher" button:        This is really illogical since the logout button is usually under your username, including Google and Yahoo! services.  I suggest bringing back the  which will definitely benefit new users and even old users. I will try to be as explanatory as possible with my question. Please also note that I have done my share of googling and I am looking for simple language preferable with some example so that I can get some insight in this subject.  My question is what is so special about $c$? Why only $c$. Its like chicken and egg puzzle for me. Does Einstein reached to $c$ observing light or does he got to light using some number which turned out equal to $c$.   Why is $c$ not relative. If something has zero rest mass like a photon why they only travel at $c$ in vacuum and not with $c+1$ or $c-1$? Package for drawing RDF graphs Is there some package to draw nice RDF graphs, such as the one below (taken from )?  Can such a graph (with the same style) be produced in TikZ? $P(\limsup A_n)=1 $ if $\forall A \in \mathfrak{F}$ s.t. $\sum_{n=1}^{\infty} P(A \cap A_n) = \infty$ Let $\mathfrak{F} = (A_n)_{n \in \mathbb{N}}$. Prove that $P(\limsup A_n)=1$ if $\forall A \in \mathfrak{F}$ s.t. $P(A) &gt; 0, \sum_{n=1}^{\infty} P(A \cap A_n) = \infty$. (Side question 1 Is second Borel-Cantelli out because we don't know if the $A_n$'s are independent?)  Suppose $\forall A \in \mathfrak{F}$ s.t. $P(A) &gt; 0, \sum_{n=1}^{\infty} P(A \cap A_n) = \infty$, but $P(\limsup A_n)&lt;1$. My prof gave us this convenient hint: Show $\exists M &gt; 0$ s.t. $P(\bigcap_{j=M}^{\infty} A_j^{c}) &gt; 0$.  $1 &gt; P(\limsup A_n)$  $1 - P(\limsup A_n) &gt; 0$  $P(\liminf A_n^{c}) &gt; 0$  By definition of $\liminf A_n^{c}$, $\exists M &gt; 0 $ s.t. $P(\bigcap_{j=M}^{\infty} A_j^{c}) &gt; 0$. (Side questions 2 and 3 Isn't this =1? ...Wait, is that what we're trying to prove? Haha)  $\to 1 - P(\bigcup_{j=M}^{\infty} A_j) &gt; 0$  $\to 1 &gt; P(\bigcup_{j=M}^{\infty} A_j)$  Main question: Now I guess we have to come up with some A s.t.  $\to 1 &gt; P(\bigcup_{j=M}^{\infty} A_j) \geq \sum_{n=1}^{\infty} P(A \cap A_n)$, or is there something else to do? How can I set the maximum draw type for multiple objects?