comparing concatinated strings and normal strings
How do I compare strings in Java?
I updated a virtual machine running Ubuntu server 15.04 to the just released new stable 15.10.  There were no apparent problems, but after reboot the machine lost its network connection. lspci showed the correct card and lsmod proved that the driver had been loaded.  Hints about editing or removing /etc/udev/rules.d/70-persistent-net.rules did not succeed (still no network, no new file), the famous /lib/udev/write_net_rules did not even exist.  I don't have much clue regarding udev and systemd, so it took me some time to find in /sys/class/net that the network interface name changed. It became ens32, which was renamed from eth0. After I changed /etc/network/interfaces network communication was enabled again.  But - why does this happen at all? And if it happens, shouldn't the interfaces file be updated automatically?  Now that I deleted the virtual network card and created another one, eth0 becomes eno16777728, which is not so, uhm, nice.  Should this behaviour (at least that of the upgrade procedure) be reported as a bug?  Furthermore, is /etc/udev/rules.d/70-persistent-net.rules obsolete now? And (although only partly related) what about /etc/udev/rules.d/70-persistent-cd.rules?)  Edit - additional question (after accepted answer) The dependency of /etc/network/interfaces from the actual interface name bothered me. I tried a new installation of *ubuntu in another virtual machine. To my surprise, /etc/network/interfaces contained a reference to the loopback device only. However, with my original VM this change prevented the network to come up. So what else do I need to change?  Edit Well, from another test I found that a new Ubuntu Server has the network interface card in /etc/network/interfaces, while XUbuntu has not. Maybe it is using network-manager or something else. How do I add a border around windows but keep the current theme? I seem to live my life in the terminal - many terminals in-fact.  I also love the Ambiance theme - but the new borderless windows does not provide the visual differentiation I'm used to (the same black windows appear to blend into each other).    Thus to my question - how do I add back the single pixel border for windows that is found in earlier Ubuntu versions?  I want to keep the Ambiance overall theme since this looks good and I dont want to swap to another theme.      Now I know that I can modify the Ubuntu Ambiance theme as follows:  mkdir ~/.themes cp -r /usr/share/themes/Ambiance .themes   Then flipping between the theme options in the Settings - Appearance picks up changes in the theme in now in the .themes folder.  I presume I need to alter one of the .css files but I dont know which one.  I was also looking at  but the solutions there doesnt work for 14.04.  I also looked at the  but got rather lost trying to figure out which one applies to my situation. Bounding box is larger than expected when drawing a curved path I have been working on logo for my department and I have the following code. The problem is that whenever I compile the diagram seems to be larger than the actual logo. I do not know what is the problem. I know the numbers I have selected are not the best but any insights into the matter will be highly appreciated.   \documentclass[letterpaper]{article}  \usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry}  %\usepackage{amsmath,amssymb,units}  %\usepackage{enumitem,multicol}  \usepackage{tikz}  %\usetikzlibrary{arrows}  \usepackage{lipsum}   \begin{document}   \lipsum[1-2]  \begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1]  \path[draw=black,fill=white]    (258.9527,290.5199) .. controls (173.9885,538.4766) and (568.5860,261.2969) ..    (306.5098,257.1141) .. controls (44.4337,252.9312) and (429.9845,542.5624) ..    (352.9767,292.0206) .. controls (275.9689,41.4788) and (119.6549,497.6604) ..    (334.1376,346.9999) .. controls (548.6203,196.3394) and (66.4622,188.6439) ..    (276.0276,346.0724) .. controls (485.5930,503.5010) and (343.9169,42.5633) ..    (258.9527,290.5199) -- cycle;  \end{tikzpicture}  \lipsum[1-2]  \end{document}    See image below: In a finite cyclic group, the generator has the order of the group Let $G$ be a finite cyclic group of order $n$ generated by an element $g$. I want to show that the order of $g$ is exactly the order of $G$.   My try:   We can write $G=\{g^i\;|\;i\in \mathbb Z\}$. Since $G$ is finite, we know that there will be identifications $g^i=g^j$ that will make $G$ finite. By the multiplication law on $G$ we must have $g^0=1$. Also if $i&lt;j$ and if $g^i=g^j$ then $g^{j-i}=1$. I can see all these but not see why $g^n=1$ and not $g^k=1$ for all $0&lt;k&lt;n$? Thank your for your help!! If the original question is "What time is it?" and I want to communicate it to another person, are these Embedded Questions OK?        I don't know what time is it.       or        I didn't know what time was it. (if communicated later) I dug a large room to specifications, 3 blocks tall and 16 blocks wide as well as long. I dug it at 10 levels above bedrock, in a location {(-240, 0) -> (-224, 16)} specified by  slime finder app. I am definitely more than 24 blocks away and less than 32 away from the spawn room, as specified by the wiki .  Yet, no slimes. I have been sitting in my location patiently listening for the moist slapping sounds of slime. I have gone in to the room every time I heard a phantom slap but still nothing.  Am I just being dumb somehow or do the minecraft lords just hate me?  If it helps/anyone cares here's my seed: 6405460532872068998 How to install the latest stable version of Chromium? Is there an easier way to install Chromium than what is described ?  Furthermore, is there an easier way to stay up to date with current Chromium releases rather than having to re-build Chromium each release? (a script which automatically grabs and installs the latest build possibly?).  Related: Partition of N into infinite number of infinite disjoint sets? Is it possible to have a countable infinite number of countable infinite sets such that no two sets share an element and their union is the positive integers? I dont have a clue about the proof in the reverse implication on the iff statement.  I will show what I have by now:  1) A cofinite topology implies that any infinite subset in $X$ is dense. Let $U\in\tau$ and is cofinite topology so $U=X-\bigcup_{k=1}^{n}\{x_k\}$.  Let $V\in X$ an infinite subset then $$V\cap U=V\cap(X-\bigcup_{k=1}^{n}\{x_k\})=(V\cap X)-(V\cap \bigcup_{k=1}^{n}\{x_k\})=V-(V\cap \bigcup_{k=1}^{n}\{x_k\})$$  and cause $|V|\ge\aleph_0$ and $|\bigcup_{k=1}^{n}\{x_k\}|=n\in\Bbb N\,$ we have that $|V\cap \bigcup_{k=1}^{n}\{x_k\}|\le n$. And finally is obvious that $V-(V\cap \bigcup_{k=1}^{n}\{x_k\})\ne\emptyset$ so any infinite subset is dense on $X$.  2) A cofinite topology implies a $T_1$-space. Let $x, y\in X$ and $U\in\tau: U=X-\{y\}$ so $x\in U\land y\notin U$. We can define too $V\in\tau:V=X-\{x\}$ so $x\notin V\land y\in V$ then a cofinite topology is a $T_1$-space.  But my problem is that I dont have a clue to prove the reverse implication i.e. if we have a $T_1$-space where every infinite subset is dense then it is a cofinite topology. Some hint? Some advice or correction in the proof of above? Thank you in advance.    I will complete the proof with the advice of @Cameron Buie.  1) A $T_1$-space implies that any finite subset is closed. Let the singleton $\{x\}\subset X$. Then $\overline{\{x\}}=\{x\}\cup\{x\}'$ where $\{x\}'=\{y:(\forall U\in\tau : y\in U)\land x\in U\}$, but because we are in a $T_1$-space exist some $U$ for any points $x,y\in X: x\in U\land y\notin U$ so $\{x\}'=\emptyset$ then $\overline{\{x\}}=\{x\}$ and is closed.  This means that for every $T_1$-space it cofinite sets are open.  2) If any infinite subset is dense on $X$ it means that the closure of any infinite subset is $X$ so the only closed sets are finite (and $X$ itself), so the topology is cofinite. Is it possible in blender to change the dimensions of a downloaded 3d model in .blend format or .obj format in blender using python scripting? I am totally new to blender, I have downloaded a 3D model of a humanoid and am able to see it in blender. I want to change its dimensions and size in all perform editing on by changing its size, height, arm width, length, etc. In a more clear picture of the question, suppose i have 5 persons whose 3D model I have to make automatically, so I want to change the dimensions of that humanoid to match the body measurements of these people. If I can mark those points manually on the humanoid and define parameters of shoulder width, arm length, height, etc and just input the values then my project can go a little forward. The model I am using is attached in this link,  Please if anyone can tell me if it is possible to edit the model by defining certain parameters through python scripting. I need it as an add on for my project. And i just need to know how can i do that rest i shall experiment and do. How does Hisoka see Gon exactly? As a rival or as a toy to entertain himself? Hisoka hinted that Gon is his treasure and also his prey, but it can't be both, right? Because in the end, he didn't want Gon to die no matter what.  So it's weird that he didn't want Gon to die but also made him his prey to fight till death. Is it sexual for Hisoka or what? I still remember the 'Schwing' thing. Notation and the name choice for meet and join (in order theory) I have two simple questions:   From where do the names  come from? I don't see any intuition between those names in context of order theory. From where does the notation come? I have to admit, I always had an impression that notation we use is somewhat backwards... just take the look at the picture at the wikipedia!    I used this notation a lot of times and I have to admit that often I have to stop for a minute and convince myself that I'm indeed using it right. I'm hoping that learning a bit about origin and context of name choice and notation will make it easier. Why is it so difficult to pull an immersed mug out of the water? Suppose I put a mug in the water and then tilt it so that the water gets inside. It then floats due to buoyant force. But if I try to pull it out then a lot of force is needed. That's due to suction? What exactly happens at the moment when the force I apply is enough to pull the mug out? And what causes the loud pop sound when that happens? Subgroups of finite abelian groups. For every subgroup $H$ of a finite abelian group $G,$ there exists a subgroup $N$ of $G$ such that $G/N \cong H.$ I need to prove this or give a counter example.  I am aware of isomorphism theorems and classification of abelian groups, direct products etc. How to resize partitions? How can I tell if an AC adapter is compatible with my laptop? Possible Duplicate:        How can I tell if an AC adapter is compatible with my laptop?  For example, does the voltage output have to bee the same, or just close?  What power measurements matter? How can I reliably and accurately identify the passive voice in writing or speech? I'm not interested in advice about whether or not to use it yet... I just want to know for sure what it is, so that I don't look as stupid as . "Bring" vs. "take" in American English How does gravity work on Star Wars ships? Inspired by the question , how does gravity work on the Millennium Falcon and other ships its size? The passengers are not strapped in and regularly move around just easily as they would on a planet with Earth's gravity.   The answer for the Death Star refers to gravity often being "coreward" (presumably taking advantage of the natural gravity an object of such substantial mass would have), but that doesn't apply for a small ship. So how is gravity accomplished? Presentation of SL$(n,\mathbb{Z}_p)$