I just tried to configure eth0 interface on my Ubuntu Server 14.04 Lts.  I want to set up static ip, therefore I put the following lines in /etc/network/interfaces:  ## To configure a dynamic IP address auto eth0 iface eth0 inet dhcp  ## Or configure a static IP auto eth0 iface eth0 inet static   address 192.168.1.111   gateway 192.168.1.1   netmask 255.255.255.0   network 192.168.1.0   broadcast 192.168.1.255   I can perfectly ping my router with this configuration. I also can connect to the server from my laptop via ssh. But internet is not working:  ping google.de ping: unknown host google.de   What could be wrong here?
I am using Ubuntu 12.04.  My /etc/network/interfaces file consists of:    # The loopback network interface   auto lo   iface lo inet loopback     # The primary network interface   auto eth0  iface eth0 inet static   address 192.168.1.58   gateway 192.168.1.1 network 192.168.1.0   broadcast 192.168.1.255 dns-nameservers 66.212.63.228 66.212.48.10     I ran the command: /etc/init.d/networking restart  Which responded with:   *Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces   *Reconfiguring network interfaces...   RTNETLINK answers: File exists   Failed to bring up eth0   [ OK ]     Next I ran ping google.com and received:    ping: unknown host google.com   I am not sure if my interfaces refreshed. How do I properly configure my network with my static DNS addresses?
Do accepted answers still serve a useful purpose? In the Stack Exchange voting system, we have two classes of votes: standard up / down votes that anyone can cast, and special  that only the asker can.   Although accepting an answer does not always pin it at the top of the answer list, that green check mark does  about the correctness of the answer. This gives a single person much greater weight than the rest of the community. That green check mark can seem confusing to visitors, who see  or  answers marked as being correct. I've heard this from several friends recently who were surprised when they came across factually wrong answers that had been downvoted, yet still had that check mark next to them.  Moderators regularly field flags from even more experienced users who demand that the accepted answer be changed from one that is incorrect or even harmful to another. We decline these, because we're not supposed to be making technical judgments like that and because we have no way of accepting answers on behalf of the asker. However, these flags do show that some people have problems with the presentation of accepted answers vs. the community voting on all the others.  There's also all the fun that came with arguments over accept rate, and people badgering askers to accept their answers.   Questions on the Stack Exchange network are intended to be broadly useful, to help out many others in the future beyond the person asking the question. If that's our goal, why should the person asking the question have any more say than the rest of the world? If it's a broadly applicable question, why should one person be able to highlight something as correct simply because they asked it first?  I guess what I'm asking is: if we did away with accepted answers, converting them to upvotes where appropriate, and only let community voting sort out the best answers, would we lose something important? I thought I'd ask after reading  to , because I wasn't sure how I felt about accepted answers anymore. I've heard Google's algorithm is based on PageRank, and that it has something to do with the links to your site. Can someone explain it, and more importantly, how I can increase my site's PageRank? Dwellers return automatically after finding a low amount of items in Wasteland Converting MultiLinestring to Linestring with PostGIS How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it.  Here is what happens:  $ sudo visudo &gt;&gt;&gt; /etc/sudoers: syntax error near line 28 &lt;&lt;&lt; sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting I want to encrypt a USB stick, and be able to decrypt it on Windows as well as Ubuntu. How do I do this &amp; what programs do I need to use? Points at integer distance How many points can one can place in $\mathbb{R}^n$, with the requirement that no $n+1$ points lie in the same $\mathbb{R}^{n-1}$-plane, and the euclidean distance between every two points is an integer? Tool to create text files from a template I have to regularly create 100+ text files from templates. I currently use an overly complicated shell script. I think there is a smarter way to handle this, but I don't know how.  I have a "database" :  # outputfile      template            data1   data2    data3 first.txt         $template_main      $text1  abcd     1234 second.txt        $template_main      $text2  efgh     5678 third.txt         $template_other     $text1  ij       90   And a configuration file :  template_main=main.txt template_other=other.txt text1=whatever text2=blah   The templates are text files with placeholders like %%data2%% (the placeholder form can be changed).  Does someone know a tool to automate this better than with a complicated shell script ? What is a smart pointer and when should I use one? How to find the limit of a sequence? Question:  If $0 &lt; x &lt; \frac{\pi}{2}$ and $f_k(x) = \tan(x)+\frac{1}{2}\tan(x/2)+ ...+\frac{1}{2^k}\tan(x/2^k)$.  In Sigma Notation: $$f_k(x) = \sum_{n=0}^k \frac{1}{2^n}\tan\frac{x}{2^n}$$  Find $$\lim_{k\to \infty}f_k(x)$$  I'm not quite sure how to take the limit of a sequence, I've never seen this before, If someone could help me solve this it would be greatly appreciated. How can I find the version of Ubuntu that is installed? I installed some version of Ubuntu on my VMware, but I don't know what version exactly it is. How can I find it out? As I understand it, the hosts file is one of several system facilities that assists in addressing network nodes in a computer network. But what should be inside it? When I install Ubuntu by default   127.0.0.1 localhost    will be there. Why?   How does /etc/hosts work in case of JVM systems like Cassandra? When is DNS alternative, I guess not on a single computer? Can “whose” refer to an inanimate object? We lit a fire whose fuel was old timber wood.   Is the word whose referring to fire, an inanimate object, correct in this sentence? Or is there a more appropriate word? iBooks library like effect What is the true origin of the orcs? There are a bunch of theories about the true origin of the orcs. Tolkien tried out a few different origins for his Orcs throughout his life but died before he could fully revise The Silmarillion with his final view on their origins and nature.   There is a list of origins proposed by Tolkien():   Made of stone and slime through the sorcery of Morgoth; East Elves, where The Silmarillion contains a suggestion that Orcs are descended from East Elves captured by Melkor, their minds and bodies distorted and corrupted. Sentient beasts, another of Tolkien's theories proposes that Orcs may have begun as soulless animals of vaguely humanoid shapes, empowered by the will of the Dark Lord (Morgoth) and learning language only as parrots do. Fallen Maiar, there are hints in the History of Middle-earth series of books, (especially in Morgoth's Ring in the section "Myths Transformed"), that some Orc leaders, such as the First Age's Boldog, or the Great Goblin encountered by Bilbo and the Dwarves, may in fact have been fallen Maiar which had taken Orc form. Corrupted Men, while Tolkien at some point saw all Orcs as descended from the original corrupted and tortured Elves, later comments of his indicate, according to Christopher Tolkien in Morgoth's Ring "Myths Transformed" text X, that he began to feel uncomfortable with this theory. At about the same time he removed the references to the Thrall-Ñoldorin, he also began searching for a new origin for the Orcs. It seems Tolkien wanted to change the origin of the Orcs to make them corrupted and twisted Humans.  A mix of corrupted Elves and Men, A late idea of Tolkien seems to be that Orcs (or Orks, showing the late spelling change) had a mixed origin of Elves and Men. Some cross-bred with Men, Tolkien also suggested that Men were cross-bred with Orcs under Morgoth's lieutenant, Sauron (and possibly under Morgoth himself). The process was later repeated during the War of the Ring by Saruman. This possibly refers to the way the Uruk-hai and the Half-Orcs were created, in The Lord of the Rings.   Of all these theories, which is the most accepted, and which did Tolkien agree with the most? I always thought that orcs were made of East Elves, as explained in The Lord of The Rings, but the story goes beyond this, there are the stories in many other books that explain different things.  What can you tell me about this? Problem with \pspicture in a simple plain TeX code Just writing the following very simple program I had some problems. I use to write in plain TeX and in this case I tried to make a picture with PSTricks and first of all sized it with \pspicture. The program is:  \input pstricks \pspicture (0,0)(5,5) \endpspicture \bye   but when I compiled with TeX, I encountered the following error:  Command Line:   tex.exe --src --interaction=errorstopmode "figura.tex" Startup Folder: C:\Users\MT\Documents\TeX  This is TeXk, Version 3.14159265 (TeX Live 2015/W32TeX) (preloaded format=tex)  Source specials enabled. (./figura.tex (c:/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex we are running tex and have to define some LaTeX commands ... (c:/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA) (c:/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex (c:/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)) 2014/12/03 v2.7a key=value parser (HA) (c:/texlive/texmf-dist/tex/generic/xkeyval/xkvtxhdr.tex 2005/02/22 v1.1 xkeyval TeX header (HA)))) (c:/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex `pst-fp' v0.05, 2010/01/17 (hv)) (c:/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex (c:/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex)) (c:/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex (c:/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)) (c:/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code .tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.te x) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics .code.tex))) (c:/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex) )) `PSTricks' v2.64b  &lt;2015/14/11&gt; (tvz) (c:/texlive/texmf-dist/tex/generic/pstricks/pstricks.con)) ! Undefined control sequence. \endpspicture ...z@ \box \pst@hbox \else \fboxsep                                                    =0pt \fbox {\rule [-\pst@s... l.5 \endpspicture  ? x No pages of output. Transcript written on figura.log.  _____________________________________________________________________   TeX Compilation Report (Pages: 0)   Errors: 1   Warnings: 0   Bad Boxes: 0 _____________________________________________________________________   What's the problem? Cardinality of cartesian product of an infinite set with N Can high level Eldritch blast be used with War Caster? How do I enable auto-login in LightDM? Why, oh why, don't the Weasleys "conjure" up some diamonds/gold/etc, sell 'em to Muggles, and get rich? They could buy a mansion (like the Malfoys), and live there happily ever after.  I know there's  that prohibits one from conjuring food (which doesn't make much sense to me, either). Even if it applied to gold, what about all the other elements/compounds/materials? Could the law really be 'don't let a wizard conjure something if it'll make them richer'? That's totally nonsensical.  Why does Wizard society still have poor people, especially if they're talented?