Since I upgraded to 18.04  (well, technically, did a clean install), Kile no longer funcitons properly. More specifically, I added kile to favourites and there is an icon for it in the launcher bar (is that the right name?). However, when I click it, it opens a window that is bound to some strange "forbidded" icon in my launcher bar (see image below, the icon under kile is where kile resides when opened).  Does anyone know how to fix this?      Update: solved, by following the solution from   Thanks to     for pointing this out
I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.   When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".      But when I launch the program, another icon pops up at the bottom, with the name "Nightly".
Find files that a user can write, efficiently with minimal process creation I am root. I would like to know whether a non-root user has write access to some files - thousands of them. How to do it efficiently while avoiding process creation? Can an observed event in fact be of zero probability? Can an observed event in fact be of zero probability?  Of course, I know that there exist non-empty events of zero probability. Mu question is the reverse: given that we have observed an event (and we have no other information about it, just the fact that it has been observed), is it possible that the event has in fact zero probability? Or does an observation necessarily mean that the probability is strictly positive?    Example context for the question:  Suppose $x_i$ (countably many) are i.i.d on $[0,1]$, but we do not know the distribution they come from. It may be uniform on $[0,1]$, may be discrete, may be any legitimate distribution (discrete or continuous). Just imagine we have some sort of a machine that shows us one by one a list of randomly drawn numbers between $0$ and $1$. We are comparing the observed numbers one by one to some special number chosen beforehand, for example $\frac12$. Now, given that at some iteration we have observed that special number at least once, does that mean that $\frac12$ has some positive probability under that (unknown) distribution? And if the probability can be zero, can we nevertheless say that we will necessarily observe $\frac12$ again later, if we continue the experiment ad infimum?  Also, disregard the "real world limitations" such as an inability to produce truly uniformly distibuted numbers, or rounding errors or any such thing. Help us find duplicates efficiently I'll be arriving at Heathrow in June 2015 with my current girlfriend for a holiday in the UK. I've been trying to find out which immigration queue to join at Heathrow Passport Control without much luck. I have a British passport, my girlfriend has a non-EU passport.     Should I join the EU queue and she the non-EU queue or should we both queue together (and if so, which of the queues should we join)? Find all primes $p>2$ for which $x^2+x+1$ is irreducible in $\mathbb{F}_p[x]$ Find all primes $p&gt;2$ for which $x^2+x+1$ is irreducible in $\mathbb{F}_p[x]$   Attempt. Since $x^2+x+1$ is of degree 2, it is reducible iff it has a root in $\mathbb{F}_p$. It has a root in $\mathbb{F}_p$ iff $x^3-1=(x-1)(x^2+x+1)$ has a root other than 1. The latter has a root other than $1$ iff $\mathbb{F}_p$ has elements of order $3$, which happens iff $3\mid |\mathbb{F}_p^{\times}|=p-1$, which happens iff $p\equiv 1\bmod 3$. So $x^2+x+1$ is irreducible iff $p\not \equiv 1\bmod3 $.   I am getting a different answer than my professor, who has $p\equiv 1\bmod 3$. If I am incorrect, were am I going wrong?  Update. Now I am unsure about my own reasoning. What if $1$ is a root of $x^2+x+1$? I don't know why I am considering roots of $x^2+x+1$ other than $1$ when $1$ can be a root. Cardinality of the quotient ring $\mathbb{Z}[x]/(x^2-3,2x+4)$ This problem is from a practice exam I was working on.     What is the cardinality of the quotient $\mathbb{Z}[x]/(x^2-3,2x+4)$ ?   Thoughts. If I find a ring that is easier to handle then this then I can go from there. So I think this is isomorphic to $\mathbb{Z}_2[x]/(x^2-3,x+2)$. And then I am stuck.  Am I correct so far? What should I be looking to do from here?  Thanks for your time and your answers. So lets say I have this interface:  public interface IBox {    public void setSize(int size);    public int getSize();    public int getArea();   //...and so on }   And I have a class that implements it:  public class Rectangle implements IBox {    private int size;    //Methods here }   If I wanted to use the interface IBox, i can't actually create an instance of it, in the way:  public static void main(String args[]) {     Ibox myBox=new Ibox(); }   right? So I'd actually have to do this:  public static void main(String args[]) {     Rectangle myBox=new Rectangle(); }   If that's true, then the only purpose of interfaces is to make sure that the class which implements an interface has got the correct methods in it as described by an interface? Or is there any other use of interfaces? How to make Latexmk use makeglossaries? What's the difference between scaling text via transform and changing font size? Is there a difference between using Transform commands to scale text and altering the size of the font via Character panels?   I'm working in Photoshop CC Why don't I get a link error when I provide my own malloc and free? Intuition behind logarithm change of base I try to understand the actual intuition behind the logarithm properties and came across  that explains the multiplication and thereby also the division properties very nicely:     Suppose you have a table of powers of 2, which looks like this: (after revision)      $$\begin{array}{rrrrrrrrrr} 0&amp;1&amp;2&amp;3&amp;4&amp;5&amp;6&amp;7&amp;8&amp;9&amp;10\\ 1&amp;2&amp;4&amp;8&amp;16&amp;32&amp;64&amp;128&amp;256&amp;512&amp;1024 \end{array}$$      Each column says how many twos you have to multiply to get the number in that column.  For example, if you multiply 5 twos, you get $2\cdot2\cdot2\cdot2\cdot2=32$, which is the number in column 5.      Now suppose you want to multiply two numbers from the bottom row, say $16\cdot 64$.  Well, the $16$ is the product of 4 twos, and the $64$ is the product of 6 twos, so when you multiply them together you get a product of 10 twos, which is $1024$.   I found that very helpful to understand the actual proofs for this property.  I still struggle to get the idea behind the change of base rule. I'm familiar with the proof that goes like:  $$\log_a x = y \implies a^y = x$$ $$\log_b a^y = \log_b x$$ $$y \cdot \log_b a = \log_b x$$ $$y = \frac{\log_b x}{\log_b a}$$  But can somehow provide a explanation in the style of the quoted answer why this actually works? With a firmware password set on a Retina MacBook Pro, what are recovery options? I am considering setting a firmware password on my Retina MacBook Pro for security reasons. If I do this and later lose the password (or other such extenuating circumstances), how can the data be recovered? Is it even possible? Can I use a variable in a Bash brace expansion? How to remove duplicate values from a multi-dimensional array in PHP How can I remove duplicate values from a multi-dimensional array in PHP?  Example array:  Array (     [0] =&gt; Array     (         [0] =&gt; abc         [1] =&gt; def     )      [1] =&gt; Array     (         [0] =&gt; ghi         [1] =&gt; jkl     )      [2] =&gt; Array     (         [0] =&gt; mno         [1] =&gt; pql     )      [3] =&gt; Array     (         [0] =&gt; abc         [1] =&gt; def     )      [4] =&gt; Array     (         [0] =&gt; ghi         [1] =&gt; jkl     )      [5] =&gt; Array     (         [0] =&gt; mno         [1] =&gt; pql     )  ) apt-get install with '-' (minus / hyphen) removes packages I was looking for some package (nautilus-terminal), and accidentally did this:  $ sudo apt-get install nautilus- Reading package lists... Done                                                                                                                                                                                                  Building dependency tree                                                                                                                                                                                                       Reading state information... Done                                                                                                                                                                                              The following packages were automatically installed and are no longer required:                                                                                                                                                  apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic                                                                       Use 'sudo apt autoremove' to remove them.                                                                                                                                                                                      The following packages will be REMOVED:                                                                                                                                                                                          gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop                                                                                                                                               0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded.                                                                                                                                                                After this operation, 2 031 kB disk space will be freed.                                                                                                                                                                       Do you want to continue? [Y/n] ^[[^C                                                                                                                                                                                             That's quite dangerous because remove is much harder to mistype than a simple dash from a failed autocompletion.     Is that an equivalent of apt-get remove? I couldn't find any documentation for that. Edit: except for overlooking the man page... How do you challenge the closing of one of your questions? Quick doubt about multiplying vectors by scalars I've just started studying linear algebra, and I'm having trouble understanding something that apparentely seems obvious to everyone else. My question is, why does multiplying a vector by a positive scalar does not change its direction? I've seen some visual representations of this and it does seem reasonable to me that that should be the case. However, I wonder whether there is a way to actually show it mathematically? In the 2d coordinate plane, for instance, I guess way one of showing that vector $A$ has the same direction of $cA,c&gt;0$ would be to show that the line containing $A$ has the same slope as the one containing $cA$ (I'm not sure if this approach is correct though). However, how to proceed in the case of $n$ dimensions? I think I must be missing out something basic here, but I really can't seem to get my head around it. Any help will be highly appreciated. Thanks very much in advance. This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton. For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f. Me and some friends were recently disuccing "How cool it would be to be invisible", from a military viewpoint, I said that Camouflage, when done correctly, works surprisingly well, so invisibility was unnecessary. They countered with the argument that an infrared camera could see you easily. Apart from several warm coats, are there any non-restictive ways of preventing IR radiation being emitted from your person?