I'm in a situation where my Comcast cable modem will not resolve URLs hosted locally.   Essentially, if I access my website from the same network, I cannot use www.mysite.com, but instead must use 10.0.0.14 (the local IP address).   Externally, there is no issue.    I found more info on the cause of this here:     That said... the simple solution to this is to either a) access the site using the internal IP address, or b) map the URL to the local IP address using the hosts file.  I've done b on one of my laptops, and this does work.  However, I'm looking for a more robust solution to this problem, to address accessing the site with items such as an iPad that a hosts file can't be edited on.   So the question is... Is there a way to setup a local DNS server that would "feed" a hosts file to all of the devices in the house?   Meaning...  can I configure the server in such a way that all requests are checked first and mapped to local addresses if needed?  Hopefully that's clear... please let me know if I can provide more detail.   I'm currently at a loss...  and mostly just frustrated that this is even an issue.
I am using a local (company) network which provides some servers which are also available from the outside (through one public static IP and port forwarding). And there are some domains which are pointing to the public IP.  What I want is my domains pointing to the local IPs when being inside the local network. I know I will need a local (internal) DNS server which changes the domains to the IPs. I am able to setup the DHCP server to deliver the DNS to the local clients (so this won't be any problem).  What kind of DNS server software can I use to:   repeat all domains like a DNS would do that but for only my domains use the local values
It's supposed to be zero but for some reason the result produces a peculiar series of digits at the end.  Also, here's the .xlsx of it: http://83.212.111.36/Book1.xlsx What does this notation mean? F|U If $F$ is a function and $U$ is a set, then what does $F|U$ mean?   In , the Inverse Function Theorem, the notation is used  Also, the file in stating the Lemma 2.14 states that $A \in U$, what does this mean? A set is an element of another set? What is $A$?  EDIT: Could someone kindly explain to me what is going on in Lemma 2.16. How does $\delta$ come into play? I dont see the role in the lemma. I also don't see why this proves one-to-one Why can't a Federation Starship's transporter history be used to bring someone back to life? I've always been a little confused by the fact that when a crew member dies they don't just use the transporter history to bring that person back. I'm aware that this wouldn't make for good TV, but I was wondering if there was a more technical reason. When running Internet Explorer from the the modern UI, I can't find out how to access tabs.  I can create tabs using Ctrl + T, but I'm not sure how to switch between tabs, see what tabs I have open, etc.  How do I navigate between tabs when using the modern UI Internet Explorer? Mean absolute error OR root mean squared error? Why use Root Mean Squared Error (RMSE) instead of Mean Absolute Error (MAE)??    Hi  I've been investigating the error generated in a calculation - I initially calculated the error as a Root Mean Normalised Squared Error.  Looking a little closer, I see the effects of squaring the error gives more weight to larger errors than smaller ones, skewing the error estimate towards the odd outlier. This is quite obvious in retrospect.   So my question - in what instance would the Root Mean Squared Error be a more appropriate measure of error than the Mean Absolute Error? The latter seems more appropriate to me or am I missing something?  To illustrate this I have attached an example below:                    The scatter plot shows two variables with a good correlation,  the two histograms to the right chart the error between Y(observed ) and Y(predicted) using normalised RMSE (top) and MAE (bottom).     There are no significant outliers in this data and MAE gives a lower error than RMSE. Is there any rational, other than MAE being preferable, for using one measure of error over the other? Oftentimes, I want to include code samples in a list, for example:   Item One Item Two, for example: private bool ItemTwo() {     return this.IFeelLucky; } Item Three   The problem is that there isn't a good and intuitive way to do this using . It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.  Source that produces this:  1. Item One 2. Item Two, for example: &lt;br/>&lt;br/>&lt;pre>&lt;code>private bool ItemTwo()     {         return this.IFeelLucky;     }&lt;/code>&lt;/pre> 3. Item Three    I would love to just be able to do it this way:  1. Item One 2. Item Two, for example:      private bool Test()     {         return this.IFeelLucky;     }  3. Item Three  Which results in, well, this:   Item One Item Two, for example:  private bool Test() {     return this.IFeelLucky; } Item Three I´m posting this because I have some active questions in SO and I´m leaving for the weekend and wont have internet until monday or tuesday.  SO is a very active site and I hate no to answer/thank/comment people who are kind enough to answer my questions.  I think an "away" indicator like an out of office reply would be a really nice feature to add for "politeness" sake. Where to put my code: plugin or functions.php? Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php?  There    and many  about that topic, mostly because there are some misconceptions about the inner workings of WordPress. I am asking for an answer based on facts, not on opinions.  It should explain how to handle these points (and probably more):   custom post types and taxonomies contact forms shortcodes custom widgets  SEO functions like custom meta elements theme switch   There are often pros and cons for both sides. Our most popular question  got a lot of code snippets as answers that are at least debatable. We need criteria a beginner can understand, maybe a check list – with reasons.  See also the related question by Chip Bennett on our meta site:   Related: So I have these two wheels parented to the leg of a robot. I wanna make them spin a few times but they're spinning around the wrong axis. With other objects I could just press R, Y, Y to make them spin right when they're already at an angle, but for some reason it doesn't work with these. Would be amazing if someone helped me fixing this! Inserting data to lookup field using rest API In alert I am getting value in data.d.results[0](This is the value that I am getting from other list using rest).Subsystem.Title and also if I use only title column then the value is inserted in the list but when I use a lookup column i.e. Subsystem, then it goes to error function.  $.ajax({         url: "https://sharepoint.com/teams/_api/web/lists/GetByTitle('Features')/Items",         type: "POST",         data:  JSON.stringify({ '__metadata': { 'type': 'SP.Data.FeaturesListItem' },    'Title': data.d.results[0].Title,'Subsystem':data.d.results[0].Subsystem.Title}),         headers: {              "accept": "application/json;odata=verbose",             "content-type":"application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val()         },         success: function(d) {alert("Items Inserted!");          //window.location.href=referrer;             },         error: function() {alert("Failed to Insert Items!");} }); If every ideal is principal show the same is true for the image of a homomorphism. How do I prove that $S^n$ is homeomorphic to $S^m \Rightarrow m=n$? This is what I have so far:  Assume $S^n$ is homeomorphic to $S^m$. Also, assume $m≠n$. So, let $m&gt;n$.  From here I am not sure what is implied. Of course in this problem $S^k$ is defined as:  $S^k=\lbrace (x_0,x_1,⋯,x_{k+1}):x_0^2+x_1^2+⋯+x_{k+1}^2=1 \rbrace$ with subspace topology. URL to create a new Google document What is the current URL to create a new Google Document please? Since Google last updated their Docs the old URL does not work. Are black holes in a sense transparent? Meaning, they don't 'hide' any stars that happen to be 'behind' them?  A regular object obviously blocks a point source of light emanating from 'behind' it. Meaning it creates an area of space photons cannot get to us from. But a massive object curves space, and so via gravitational lensing we can sometimes see distant stars that are 'behind' other stars (by behind I mean that if the star in the middle would suddenly vanish, the trajectory of photons traveling from the distant star to Earth would have passed through the volume now occupied by the middle star).  My thinking, is that black holes curve space so much, that from ANY source of light outside it, light has a trajectory to reach us on Earth (assuming of course no other object blocks it on its way).  The reasoning for this is: Suppose we draw the straight line between us and the light source (as if the black hole wasn't there at all). Photons from our light source crossing the event horizon would obviously 'fall' inside. A photon in theory traveling exactly tangent to the event horizon would in a sense go 'into orbit' around the black hole (obviously there is no such thing, because the black hole isn't perfectly spherical, and there are quantum effects and so forth. But I'm focusing on the geometry), crossing our straight line exactly at the intersection of our line and the event horizon. Any photon passing near the event horizon, but a bit farther, would follow a curve that intersects our line a little farther from the event horizon. Continuing this, there would be at last be a photon that would exactly curve our way. Am I too old for academia after a PhD? This one-liner removes duplicate lines from text input without pre-sorting.  For example:  $ cat &gt;f q w e w r $ awk '!a[$0]++' &lt;f q w e r $    The original code I have found on the internets read:  awk '!_[$0]++'  This was even more perplexing to me as I took _ to have a special meaning in awk, like in Perl, but it turned out to be just a name of an array.  Now, I understand the logic behind the one-liner:  each input line is used as a key in a hash array, thus, upon completion, the hash contains unique lines in the order of arrival.  What I would like to learn is how exactly this notation is interpreted by awk. E.g. what the bang sign (!) means and the other elements of this code snippet.  How does it work? Prove : $p$(n│even number of ODD parts)=$p$(n│distinct parts ,number of ODD parts is even ) How to create csv files in controller method from list I want to create csv files from lists and send an email attaching them, how to do that in a controller method? Why does inertia happen? In  R P Feynman relates a story where his father told him that, even though we know the word "inertia" and what it means, nobody knows why inertia happens. Is that still true? I dont understand the following very simple statement:  If $\tau \in S_n$ has order $m$, then $\sigma \tau\sigma^{-1}$ has also order $m$.  The proof is:  Suppose $\tau$ has order $m$.   $(\sigma \tau \sigma^{-1})^{m} = \sigma \tau^{m}\sigma^{-1}= (1)$  Then (using  exercise 17) they say that the order of $\sigma\tau\sigma^{-1}$ cannot be less than $n$ (remember we are in $S_n$), since $(\sigma\tau\sigma^{-1})^k=1 $ implies $\sigma\tau^k\sigma^{-1} =(1)$, and then $\tau^k=\sigma^{-1} \sigma = (1)$  I don't understand the last part.... Who can help me?