How can I drag file to the running application on Dock?  For example, I have running and minimized Chrome but I want to drag file to imgur or askubuntu topic for upload.  In Windows I just simply drag file to the app on taskbar and app maximize and I can drag file to the browser. Do they possible on Ubuntu 18.04+ without extensions?
Since Ubuntu 18.04 I can't drag a file e.g. image file to an open application such as Inkscape or  email message window. In Ubuntu 17.10 I was able to select the image file by clicking on it, and while holding down left mouse button I would hit the supper key displaying all open windows where for there I could then drop the file in any open app or folders. This is no longer possible/default behaviour since Ubuntu 18.04. Is there a workaround that would allow me to achieve this or even a way to recreate the same behaviour like in 17.10?
We already had multiple questions about unbalanced data when using , , ,  and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with unbalanced data.  Quoting , dealing with unbalanced data     (...) heavily depends on the learning method. Most general purpose   approaches have one (or several) ways to deal with this.   But when exactly should we worry about unbalanced data? Which algorithms are mostly affected by it and which are able to deal with it? Which algorithms would need us to balance the data? I am aware that discussing each of the algorithms would be impossible on Q&amp;A site like this, I am rather looking for a general guidelines on when it could be a problem. Merge two arrays as key value pairs in PHP I've got two arrays of the same size.  I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.  Right now I'm just looping through the arrays and creating the new array manually, but I have a feeling there is a much more elegant way to go about this.  I don't see any array functions for this purpose, but maybe I missed something?  Is there a simple way to this along these lines?  $mapped_array = mapkeys($array_with_keys, $array_with_values); This isn't a particularly major issue, but I've had this thing nagging me for a while. When looking at QGIS 3.4's global variables, user_full_name is assigned my given and surname, which includes a diaeresis (¨) somewhere in there. I can't seem to find any way to get QGIS to switch/adapt encoding and display the name correctly. The accented character gets switched to that ubiquitous black rhombus.  I looked for info on this behavior and found moderately similar issues like  and  but it's not exactly the same problem as it's not a geodata encoding issue but rather how QGIS deals with values pulled from the OS.  I have tried unchecking the Override system locale tickbox in Options|General as I prefer to use American English even though my OS is set to Canadian French. No effect to observe.  There's somewhat of a workaround right now which is to fix the name in the Project variable project_author as it is editable (it's filled with the offending global variable by default).  I'm curious to know, though, if someone has encountered this before and if there's a solution in QGIS. Any point to downvoting already closed questions? That question of mine was closed a long time ago (relatively, to me at least).  However, from time to time I still get downvotes for it.  That got me thinking: is there any reason to still downvote closed questions? What is the reason behind the multiple Spider-Man reboots? Every differentiable function $f:R \rightarrow R$ with the property that $(2h)f′(x) =f(x+h)−f(x−h)$ for all $x \in R$ and all $h$ has the form $f(x) =ax^2+bx+c$.  I would like to get some help on this one. Taking partial derivatives was an idea, but is that legal? Get the real width and height of an image with JavaScript? (in Safari/Chrome) How can I cast artificially darker shadows? I want to make certain shadows more prominent (using Cycles) without further illuminating the rest of the scene.  Example: I have a simple studio with a bowl of fruit and 3-point lighting.  The light looks great so I don't want to change it but I want the bowl to cast a darker shadow on the ground (without dimming the back-light).  Alternatively, and this would be really cool, an anti-light source.  Like a spot light that throws darkness instead of light. (Am I crazy for wanting this?)  Thanks! What happens if you use the 32-bit int 0x80 Linux ABI in 64-bit code? There is a question I have based on the fact: If you take a quadratic polynomial with integer coefficients, take the set $\{1,2,3,4,5,6,7,8\}$, make a partition $A=\{1,4,6,7\}$, $B=\{2,3,5,8\}$, and then evaluate the polynomial with the elements of each set you got an equality.  If now with a cubic polynomial and the set $\{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\}$, how to pick a suitable partition that accomplish the same fact? I mean is there a general formula for bigger degree? In the book , at page 27 we find the exercise asserting that       Exercise I.XXXVI.   The underlying space of a zero-dimensional scheme is discrete; if the scheme is Noetherian, it is finite.     Thoughts I thought that a zero-dimensional scheme is one such that, in every local ring $\mathscr O_{X,p}$, the only prime ideal is its unique maximal ideal $\mathfrak m_{X,p}.$ Hence, supposing that $X=\operatorname{Spec} R$ is affine, we deduce that every prime ideal is maximal, so each ponit in $X$ is closed. But how does this imply the discreteness? It only implies the Hausdorff-ness of $X$, right? Furthermore, I cannot perceive what the "Noetherianity" has to do with the finiteness claimed here. In the affine case, it seems to be claiming that there are only a finite number of prime ideals in a Noetherian ring, if its scheme is zero-dimensional? For example, $\mathbb Z$ is a Dedekind domain, hence its scheme is zero-dimensional, but it has infinitely many primes: does this contradict the statement?    Thanks in advance for any reference or hint, and point out any inappropriate point if any is presented. Edit I see why my example cannot work now: it is one-dimensinoal: don't forget the pirme $(0)$. But I am still wondering why the statement is true... Solution  Full solution for producing PDF/X compliant document can be found in MWE and answer to this question:   Adapted MWE and compilation method are taken from Leonid's answer to this question.  Please note that solution requires compilation with TeXLive 2015 (or later).  Original question  I am trying to compile my source with XeLaTeX to produce PDF/X-1a:2001 compliant document. Getting PDF/X-1a:2001 is possible with pdfx package (while using up-to-date TeX distribution), but only when document is compiled with pdflatex.  Since I am using OTF and TTF fonts in my document, I have to use XeLaTeX to compile it. This is MWE:  \documentclass{book} \usepackage[x-1a1]{pdfx} \begin{document} Some text \end{document}   When I try to compile this document with MiKTeX's 2.9 xelatex I get following error and compilation halts:  ! Undefined control sequence. l.111 \pdfminorversion                       =4 %  assumed for PDF/A ;  options may change this for...  ?    Is there any way to compile PDF/X-1a:2001 with XeLaTeX, either using pdfx or different package?  Ps. I used MiKTeX 2.9, because I don't want to update my TeX Live 2013/Debian distribution I normally use. With MiKTeX I get most recent version of pdfx package.  EDIT: Since it isn't obvious from Leonid's answer and is mentioned only in comments, please note that you need TeXLive 2015 in order for Leonid's answer to work fully. TeXLive 2013 (installed by your system's package manager) or MiKTeX 2.9 won't do the trick (this is true as of March 2016; it might change by the time you read this).    I also tried to compile this MWE with LuaLaTeX to see if this works. It didn't. I get following error:  ! Undefined control sequence. \pdfx@findUUID ... \pdfx@tmpstring {\pdfmdfivesum                                                    {#1}} \expandafter \pdfx@e... l.360 \pdfx@findUUID{\jobname.pdf}  ?   In the event version of LuaLaTeX matters: lualatex --version outputs  This is LuaTeX, Version beta-0.76.0-2013062821  (MiKTeX 2.9 64-bit) (rev 4627) Head or tail sound fine to my ESL ears.  What's the reasoning behind the plural usage?  I looked it up on etymonline but didn't find anything interesting. Real Analysis Riemann Integration - Strict Monotonicity for Integrals If $f,g$ are Riemann integrable on $[a,b]$, and $f(x) &lt; g(x)$ for all $x \in [a,b]$, prove that $$ \int_a^b f(x) \,dx &lt; \int_a^b g(x) \,dx$$  This is a strict inequality. I know how to prove the monotonicity of integrals with the non strict inequality, but I am not sure how to do this. HowTo redirect HTTP to HTTPS on the same httpd? Here is what I have got:   CentOS 5.4 (32-bit)    installed Apache httpd (Server version: Apache/2.2.11 (Unix)) mod_rewrite already presents   Question: how to redirect simple  to  not using VirtualHost defines?  PS: tried to find in later answers on SF, but doesn't find nice solution.  Thanks. Who's at fault with this error concerning csquotes and LuaLaTeX? I ran into this with the package lilyglyphs but I'm not sure whose fault this error is.  When I compile the following with lualatex:  \documentclass{article} \usepackage{csquotes} \MakeOuterQuote{"} \EnableQuotes \begin{document} \directlua{print("hello")} \end{document}   I get an error saying   \directlua]:1: unexpected symbol near '\'. l.6 \directlua{print("hello")}    Now suppose that I do not directly write \directlua in my document, but I include a package that does it internally. Such as   \documentclass{article} \usepackage{fontspec, csquotes, lilyglyphs} \MakeOuterQuote{"} \EnableQuotes \begin{document} \wholeNote \end{document}   I have no knowledge why compilation fails, because the error now becomes   ! Missing number, treated as zero. &lt;to be read again&gt; \begingroup l.7 \end       {document}    From my user point of view I did nothing wrong, because I'm using the public API provided by the packages. The csquotes documentation specifically says:     Note that all characters are automatically checked for validity as they are allocated. This package will reject characters which are unsuitable as active quotes... In sum, the following   characters will be considered as reserved by this package:   A–Z a–z 0–9 . , ; : ! ? ' - # $ % &amp; ^ _ ` ~ \ @ * { } [ ]    So my question is whose fault is this error?   My fault, the user's fault, because I should have known (but how?) that even though the quote is not listed as unsuitable in the csquotes manual, it actually is? The fault of the implementation or documentation of csquotes for failing to mention " as unsuitable? The fault of the implementation of the \directlua command because it doesn't prevent LaTeX catcode changes/active characters from impacting its argument? A shortcoming of TeX itself because of its global state based architecture? Triggered send status queued, need to get an alert Error sending edittext in java server. See code Quote unquote (or end-quote), unseparated by the actual quotation In spoken English, people often say "quote-unquote" (or "quote-endquote") to indicate that part of what they are saying is a quotation (scare or otherwise). Sometimes the quoted material will go between quote and unquote, and occasionaly it will precede the quote-unquote. Often, though, "quote unquote" introduces the quoted material.  Why does quote unquote precede the quotation?  It would seem that quote opens the quoted text and that unquote closes it, but then why would we close the quotation before actually providing it. It would be the equivalent of writing your quotation marks together, "", rather than around the quoted text.  What are the origins of this construction?  Three years ago ChrisR asked  on whether it is correct to use quote, unquote. The answers did not deal with origins, but one commenter suggested that quote-unquote is a corruption of quote-on-quote, but he provided no evidence, nor any real explanation. I'm trying to compute the infinite series $\sum_{n=0}^{\infty} ne^{-n}$.  I know the answer is $e/(e-1)^2$, but I don't understand how to find this result.  Thanks for the help!