I recently installed Ubuntu 18.04 and I'm not keen on the desktop environment. I want the desktop env. I used to have in Ubuntu 14.04. How can I get it?  I've attempted to use , but when I try to install the Unity's 7.2.5 version using the command:  apt install unity=7.2.5   it gives me   E: Version '7.2.5' for 'unity' was not found   For sure I need to add a PPA for this, but which one!?
Now, that Ubuntu 17.10 is out, and Unity 7 is replaced with Gnome 3, is there a way to install and use Unity7?   I know Unity is still in the repositories, so it should be possible, right?
How to read a file without newlines? Hot questions no longer work on iPad (ok on iPhone) register_globals error in php I was stuck up with the error   directive 'register_globals' is no longer available in PHP in unknown on line 0   when tried to check the php version using "php -v" after enabling register_globals in php.ini file. I am not getting any php version info by doing so. Instead it throws the above mentioned error.After turning off this option, php info works quite well. It is very essential for me to have register_globals to be turned on.How can I have this corrected.  my php.ini is as follows:   ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" ; http://php.net/request-order request_order = "GP"  ; Whether or not to register the EGPCS variables as global variables.  You may ; want to turn this off if you don't want to clutter your scripts' global scope ; with user data. ; You should do your best to write your scripts so that they do not require ; register_globals to be on;  Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. ;  register_globals = On  ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables ; are registered by PHP or not. As they are deprecated, we obviously don't ; recommend you use them. They are on by default for compatibility reasons but ; they are not recommended on production servers. ; Default Value: On ; Development Value: Off ; Production Value: Off ;  register_long_arrays = Off  ; This directive determines whether PHP registers $argv &amp; $argc each time it ; runs. $argv contains an array of all the arguments passed to PHP when a script ; is invoked. $argc contains an integer representing the number of arguments ; that were passed when the script was invoked. These arrays are extremely ; useful when running scripts from the command line. When this directive is ; enabled, registering these variables consumes CPU cycles and memory each time ; a script is executed. For performance reasons, this feature should be disabled ; on production servers. ; Note: This directive is hardcoded to On for the CLI SAPI ; Default Value: On ; Development Value: Off ; Production Value: Off ; register_argc_argv = Off  ; When enabled, the SERVER and ENV variables are created when they're first ; used (Just In Time) instead of when the script starts. If these variables ; are not used within a script, having this directive on will result in a ; performance gain. The PHP directives register_globals, register_long_arrays, ; and register_argc_argv must be disabled for this directive to have any affect. ; auto_globals_jit = On How to test @future methods with setup objects and avoid MIXED_DML_OPERATION Is there any simple method to calculate $\sqrt x$ without using logarithm Suppose that we don't know logarithm, then how we would able to calculate $\sqrt x$, where $x$ is a real number? More generally, is there any algorithm to calculate $\sqrt [ n ]{ x } $ without using logarithm? More simple techniques would be nice.  Here is a simple technique used to approximate square roots by :  For example: $\sqrt {78}\approx 8\frac { 14 }{ 17 } $ , where $8$ is the nearest integer root of $78$, $14 = 78 - 8^2$, $17 = 2 \times 8 + 1$.  if $n=2^k$ we can use the method above.   For example, for $k=2$ Lets calculate $\sqrt [ 4 ]{ 136 } $: $$\sqrt [ 4 ]{ 136 } =\sqrt { \sqrt { 136 }  } \approx \sqrt { 11\frac { 136-{ 11 }^{ 2 } }{ 11\times 2+1 }  } =\sqrt { 11\frac { 15 }{ 23 }  } \\ \sqrt { 11\frac { 15 }{ 23 }  } \approx 3\frac { 11\frac { 15 }{ 23 } -{ 3 }^{ 2 } }{ 3\times 2+1 } =\frac { 544 }{ 161 } =3.38\\$$ The exact result is$$ \sqrt [ 4 ]{ 136 } =3.4149\cdots$$ The method approximates well, but it is working for only $n=2^k$ as I know. I have a Category entity which has a Nullable ParentId field. When the method below is executing and the categoryId is null, the result seems null however there are categories which has null ParentId value.  What is the problem in here, what am I missing?  public IEnumerable&lt;ICategory&gt; GetSubCategories(long? categoryId) {     var subCategories = this.Repository.Categories.Where(c =&gt; c.ParentId == categoryId)         .ToList().Cast&lt;ICategory&gt;();      return subCategories; }   By the way, when I change the condition to (c.ParentId == null),  result seems normal. Deleting my own question How do I write content to another browser window using Javascript? I've opened a new window with window.open() and I want to use the reference from the window.open() call to then write content to the new window.  I've tried copying HTML from the old window to the new window by using myWindow.document.body.innerHTML = oldWindowDiv.innerHTML; but that's doesn't work.  Any ideas? I need help with this:  If a is an element of $\mathbb Z_n$ and $\gcd(a,n) &gt; 1$ , then a is not invertible.   First you show that if $a$ is an element of $\mathbb Z_n$ and $\gcd(a,n)&gt;1$, then there  is an element $b$ of $\mathbb Z_n$ and ($b$ is not equal to the zero element) from which $ab = 0$.   The second part I cant get. i.e. show if $b$ is not the zero element  and $ab=0$ then $a$ is not invertible. How many permanent SPECIAL points are available in Fallout 4? Is there a "smallest" divergent sum? Which of these is grammatically correct?       1. a) He has been working under my direct supervision since the last two years           1. b) He has been working under my direct supervision for the last two years            2. a) He has not met her since a very long time        2. b) He has not met her in a very long time    Which of the above are correct? Are all of them correct? My friend says 1.b and 2.b are correct, but I am not sure. Or is this an American English and British English thing? (He mostly goes by American English) A user has asked  which did not receive much attention, and thus the user deleted the post. After some time, the user asked the  (with just slight changes to the title and a tag change), so that it could receive a bit more attention. The strange thing is that the question was not downvoted or poorly written, and yet the user deleted the original post. Now, since the original question was deleted, I could not mark the new one as a duplicate (it threw an error). My question is, how do we handle such questions? Just let them be as such or let the user know about it or is there another way to handle such situations? Can you restore log file backups to a mirror database after failure? Purely a theoretical question as I've been considering possible DR scenarios...  In this scenario:   The link between a principle and a mirror server becomes unavailable for a period of time (e.g. network outage) Incremental log backups are still being taken during this time Then the principle database fails and is unrecoverable   Is it possible to restore the incremental log backups onto the mirror to bring it up to date and back online, or would you need to start from scratch with a restore of a full backup?  Depending on the size of the database the difference could be hours of downtime so it would be nice to know.  I'm predominantly interested in SQL Server 2008 R2 and 2012 but other people may be interested in other versions if there's a difference. Multi-window: prevent the out-of-focus app from pausing? How can I stop Nautilus from dereferencing symlinks? I use symbolic links to tidy my home folder. This works well in the terminal, since the links create the illusion of normal folders:    In Nautilus, however, the links behave more like , immediately teleporting me to their target:    This is particularly troubling when¹ I later want to navigate "up" to the parent folder, as it strands me somewhere outside of the tree I've carefully tidied.  How can I make Nautilus show symbolic links as normal folders, like the terminal does?  Details   Nautilus did not dereference symlinks in Ubuntu 12.10:   Maybe this new behavior is just a bug? I'm not sure how to tell. Here's what I know:   It's not on the . I've skimmed the  and didn't see anything related. The Nautilus mailing list archive . I received no response from about 120 idlers when posing the question on the GNOME IRC channel. A change was made in Nautilus 3.6 to .  ¹ This is an example. A workaround for this particular scenario does not constitute an answer to my question. Since people seem to be interested in discussing it, though:   Using the Back button is not a suitable workaround; it does not always take me to the parent folder. You can navigate up by pressing Alt+Up. The desired behavior in this example is for "up" to navigate to the parent folder of the symbolic link. The current behavior is to navigate to the parent folder of the target of the symbolic link. How can I test for a player wearing specific armor? How can I test for a player that is wearing an iron helmet named "test1" and an iron chestplate named "test2" in Minecraft Version 1.12? Do an action and its Euler-Lagrange equations have the same symmetries? Assume a certain action $S$ with certain symmetries, from which according to the Lagrangian formalism, the equations of motion (EOM) of the system are the corresponding Euler-Lagrange equations.  Can it happen that the equations of motion derived by this procedure have different kinds and/or numbers of symmetries than the action one has started with? And if yes, are there underlying principles that state why which kind of symmetries the action does not have can emerge in corresponding EOMs or which kind of symmetries of the action can potentially disappear in the EOMs derived from the Euler-Lagrange equations? What is the VTable Layout and VTable Pointer Location in C++ Objects in GCC 3.x and 4.x? If a nonempty set of real numbers is open and closed, is it $\mathbb{R}$? Why/Why not? In other words, are $\emptyset$ and $\mathbb{R}$ the only open and closed sets in $\mathbb{R}$? Why/Why not?  I tried by assuming a set is equal to its interior points and contains its limit points.  A bounded set will not do since stuff like $[1,4]$ and $\{5\}$ will not work, though that is not really proof. Help please?  Anyway, it must then be unbounded.  If $a$ is a real number then $(a,\infty)$, $(-\infty,a)$, $[a,\infty)$ and $(-\infty,a]$ don't seem to cut it so it must be $\mathbb{R}$.