I am running a dedicated server on Digital Ocean. My site uses Flask on NGINX through Gunicorn. During development I plopped a search engine (solr) on a local VM (through VMWare Fusion) which happens to be running Tomcat. It could have been running any web server per my question. In my app I make all search requests to that local ip: 192.168.1.5. Now, when I install Tomcat on my server and run it you can see it publicly at mysite.com:8080. There's the old welcome screen of Tomcat for the world to see.  I want my app to be able to access it locally through localhost:8080 but not show it to the world. Is this possible?
How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
Where can I find documentation on formatting a date in JavaScript? WHERE IN (array of IDs) I have webservice which is passed an array of ints. I'd like to do the select statement as follows but keep getting errors. Do I need to change the array to a string?  [WebMethod] public MiniEvent[] getAdminEvents(int buildingID, DateTime startDate) {         command.CommandText = @"SELECT id,                             startDateTime, endDateTime From                             tb_bookings WHERE buildingID IN                             (@buildingIDs) AND startDateTime &lt;=                             @fromDate";      SqlParameter buildID = new SqlParameter("@buildingIDs", buildingIDs); } How do I get %LocalAppData% in c#? How do I create a dynamic key to be added to a JavaScript object variable In The Matrix Revolutions, when Neo and Trinity are trying to get to the Machine City, when the Machines launch weapons against them, Neo is able to destroy some of the incoming weapons. This is in the real world at this point, not in the Matrix.  How does Neo have any powers against the machines outside of the Matrix? Addendum: I'm looking for in universe answers only.  I would think that would be obvious, but I'm adding this after an answer that is essentially, &quot;It's a movie...&quot; Why do some people answer in comments? Why do some people post comments that are actually answers to the question? Wouldn't posting an answer be better? In how many different ways can we place $8$ identical rooks on a chess board so that no two of them attack each other? In how many different ways can we place $8$ identical rooks on a chess board so that no two of them attack each other?  I tried to draw diagrams onto a $8\times8$ square but I'm only getting $16$ ways.  Does that sound right?  Thanks for the help! I'm looking for some sample code that will sort the list items in an HTML list by alphabetical order.  Can anyone help?  Here is a sample list for people to work with:  &lt;ul class="alphaList"&gt;     &lt;li&gt;apples&lt;/li&gt;     &lt;li&gt;cats&lt;/li&gt;     &lt;li&gt;bears&lt;/li&gt; &lt;/ul&gt; Best way to do multi-row insert in Oracle? a) Let $a&gt;0$ and the sequence $x_n$ fulfills $x_1&gt;0$ and $x_{n+1}=\frac{1}{2}(x_n + \frac{a}{x_n})$ for $n \in \mathbb N$. Show that $x_n \rightarrow \sqrt a$ when $n\rightarrow \infty$. I have done it in two ways, but I guess I'm not allowed to use the first one and the second one is incomplete. Can someone please help me?  We already know $x_n \rightarrow \sqrt a$, so we do another step of the iteration and see that $x_{n+1} = \sqrt a$.  Using limit, $x_n \rightarrow x, x_{n+1} \rightarrow x$ (this is the part I think it's incomplete, don't I have to show $x_{n+1} \rightarrow x$, how?), we have that   $$x = \frac x 2 (1 + \frac a {x^2}) \Rightarrow 1 = a/x^2 \Rightarrow x = \sqrt a$$ b) Let the sequence $x_n$ be defined as $x_{n+1}= 1 + \frac 1 {x_n} (n \in \mathbb N), x_1=1$. Show that it converges and calculate its limit. &quot;Tip: Show that sequences $x_{2n}$ and $x_{2n+1}$ monotone convergent to the limit.&quot; I didn't understand the tip, how can this help me? Does it make a difference if the number is odd or even? Thanks in advance! Adding shapefile or feature class as layer in ArcMap using ArcPy I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's another story).  The best I can do so far is to add a layer file to the current map, using the following ("addLayer" is a layer file object):  def AddLayerFromLayerFile(addLayer):  import arcpy  mxd = arcpy.mapping.MapDocument("CURRENT")  df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]  arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE")  arcpy.RefreshActiveView()  arcpy.RefreshTOC()  del mxd, df, addLayer   However, my raw data is always going be shapefiles, so I need to be able to open them. (Equivalently: convert a shapefile to a layer file without opening it, but I'd prefer not to do that). Is there a way to target the arrow from an OP bow via command block? I am trying to make an effect trail for a specific weapon in MC, a bow with power 120.  I want to use a command block to target any arrow with the damage it should be doing (63) and summon a trail of splash potions.  I also want to kill any arrow entities that have inGround=True  Is there any way to do this or do I have to come up with something else?  Attempt:  /execute @e[type=Arrow,damage=63,inGround=0] ~ ~ ~ summon ThrownPotion ~ ~ ~ {Potion:{id:potion,Damage:8197}} /kill @e[type=Arrow,inGround=True]   Each unfortunately just affects all arrows.  Is this even possible? How to list the tables in a SQLite database file that was opened with ATTACH? What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the ATTACH command on the SQLite 3 command line tool? "I didn't realize it was him." are more efficient than ordinary upright bicycles, and  are even more efficient. Then why do we see them so rarely on the road? Is it because they are expensive, or are there some non-financial, significant disadvantages? Compiz Problems (Plugin Missing, Performance Issues, Development) I've recently set up the compiz cube again, and I was very happy to find that that flickering window glitch is gone! However, the cube reflection and deformation plugins are also gone.  I am running a fresh 12.10 install, and I have every compiz plugin package installed (including compiz-plugins-extra, which supposedly contains everything that compiz-fusion-plugins-extra package used to have), but those two plugins are still missing. I haven't been able to find anyone with the same problem.   Any ideas? (thanks!) How do I call a Windows shell command using VB6? While CtrlX works fine in vim under windows, CtrlA selects all (duh).  Is there a way to increment a number with a keystroke under windows? When $\min_{x \in X,y \in Y} f(x,y) = \min_{x \in X} \min_{y \in Y} f(x,y)$? Different seed gives different LASSO output