I've used Linux and FreeBSD as my main desktop environments from 2000 to 2006. Back then we would have to edit keyboard maps to make Portuguese Brazilian work. Since then, I stopped using Linux as desktop and moved to MacOS because it was very time consuming to just get things done.  I've been hearing about all the evolution of the Linux desktop in the last decade and a couple of weeks ago I just bought a new Dell XPS preloaded with Ubuntu 16.04 and what a surprise... I just can't get my keyboard to work correctly!  At first I couldn't get it to write the cedilla "ç" using US-international. By following the instructions in  I could get it to work, but now all consonants get "accented" (.e.g., '+s becomes ś or '+r becomes ŕ), which is just not possible in Portuguese. The expected behavior would be 's or 'r.  Why is it so difficult to just get things right?  I would like to know if is there any solution or workaround to this problem.  EDIT: Someone marked this as duplicate of another question on how to use multiple languages. This is not the issue here. My question is how to make Ubuntu/Linux correctly work to write Brazilian Portuguese using a US keyboard.  In other words, typing ' followed by s should output 's and not ś, meanwhile typing ' followed by a should output á and typing ' followed by c should output ç.  So, the question is how do I get this behavior?  EDIT: As I got no real answer I coded a small ibus input method, based on ibus-tmpl for solving this. Probably not a good solution, but the quickest workaround I could find. It is available on
How can I have one keyboard input layout and multiples languages in Ubuntu 17.10? If I have English language I can't type "'e" and get an "é", as I can do in Portuguese and Spanish.  When I manage to do that on Settings -> Region &amp; Language, I'm able to change languages, but it also changes the keyboard layout.  Is there any way to change language (Portuguese or Spanish for example) and set the keyboard input layout (US International for example)?
Smooth option sometimes produces incorrect arrow tips in PGFplots Should I flag obviously wrong answers as NAA? Would it help if you jump inside a free falling elevator? Imagine you're trapped inside a free falling elevator. Would you decrease your impact impulse by jumping during the fall? When? Is it possible to convert virtual machines to physical environments? java.lang.IllegalArgumentException: Invalid  in servlet mapping &lt;servlet&gt;     &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;     &lt;servlet-class&gt;workflow.WDispatcher&lt;/servlet-class&gt;     &lt;load-on-startup&gt;2&lt;/load-on-startup&gt; &lt;/servlet&gt;  &lt;servlet-mapping&gt;     &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;     &lt;url-pattern&gt;*NEXTEVENT*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt;   Above is the snippet from Tomcat's web.xml. The URL pattern *NEXTEVENT* on start up throws     java.lang.IllegalArgumentException: Invalid &lt;url-pattern> in servlet mapping   It will be greatly appreciated if someone can hint at the error. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ Is it possible to install MySQL 5.5 or 5.6 on Ubuntu 16.04? I recently upgraded to Ubuntu 16.04. Unfortunately I need to work MySQL 5.5 or 5.6. I tried many solutions to have MySQL 5.5 or 5.6 run on Ubuntu 16.04 like this  . But none of them is working. Ubuntu detect the unmet dependencies but says "but it is not going to be installed" for 5.5 or says Package 'mysql-server-5.6' has no installation candidate...  Is it not possible to force an earlier version of MySQL on Ubuntu? Why is that? Automatic text wrapping in ArcMap layout text element? Comparison theorem for ODE Here is something I'm trying to prove:     Conjecture: Suppose $f'(x) \leq \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.   It definitely seems like it should be true, and I don't think we even need continuity of $\phi$.  (Edit: a user has correctly pointed out that we should require $\phi$ be locally Lipshitz in the first variable, uniformly with respect to the second variable. Let's add that assumption.)   I can prove it in the case that the inequality is strict. I'll place my proof below the fold. How can I extend it to weak inequality?  If it's wrong, I'd love to see a counterexample. A reference is fine; I have the book by Teschl, for example.  A similar question with stronger assumptions was asked .     Proposition: Suppose Suppose $f'(x) &lt; \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.  Proof: Suppose not. Suppose WLOG there is a $b&gt;a$ such that $f(b)&gt;g(b)$. Let $c:=\inf \{x&gt;a:f(x)&gt;g(x)\}$. By definition of the derivative we have $f'(c)\geq g'(c)$, a contradiction, since $f'(c)&lt;\phi(f(c),c)=\phi(g(c),c))=g'(c)$. Saving Working Files as PSD or TIFF? I was reading a few articles about how people saved their working files and it got me thinking about my own method. I used to save everything as a PSD, but recently I have started saving my working files as TIFF's. I use Windows, so I don't know if it's different for Apple users but with a PSD, all I can see is that "PSD" icon. But a TIFF file shows up as a normal image (that I can edit), so I found it really great when I have a lot of working files for one project and could just quickly preview it without opening the program.  That being said, I am no expert in which method is better. And I know a lot of people here are pretty seasoned users in all things Adobe, so I was wondering what your two cent on the whole topic is?   Is there really any difference to saving it as a PSD or TIFF? Is there something I should specifically know about saving my files as a TIFF rather than a PSD? I'm using Ubuntu GNOME 16.10 and was trying to install WPS Office. I tried to install using software centre But it wasn't installing without giving any error logs. Then I opened it with Gdebi installer. Here is what I saw.    I have already trying enabling multiverse repositories.  Edit: I have downloaded the amd64 package from the WPS official site, but even now installing through terminal I still get the missing dependencies error. When can I make opportunity attacks? Automate Fixed Width Page, length > some minimum length, but only as long as needed I am trying to automate the solution proposed by egreg to  by hooking into \begin{document} and \end{document}.  So, egreg's solution works fine:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum}  \begin{document} \setbox0=\vbox{ \lipsum[1-6] } \dimen0=\dp0 \pdfpageheight=\dimexpr\ht0+2cm\relax \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi \unvbox0\kern-\dimen0 \end{document}   But can't seem to get this to work:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum} \usepackage{environ}  \NewEnviron{MyBox}{     \setbox0=\vbox{\BODY}% }{%     \dimen0=\dp0%     \pdfpageheight=\dimexpr\ht0+2cm\relax%     \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi%     \unvbox0\kern-\dimen0% }  \AtBeginDocument{\begin{MyBox}} \AtEndDocument{\end{MyBox}}  \begin{document} \lipsum[1-6] \end{document}   Hooking into \AtBeginDocument is per this solution on . I am flying to Tbilisi, Georgia with Turkish Airline. My stay in Istanbul is 12 hours. Can I get transit visa to visit Istanbul city ?    I am from Pakistan with Oman employment visa. Why is python ordering my dictionary like so? Here is the dictionary I have  propertyList = {     "id":           "int",     "name":         "char(40)",      "team":         "int",     "realOwner":    "int",      "x":            "int",     "y":            "int",      "description":  "char(255)",      "port":         "bool",     "secret":       "bool",     "dead":         "bool",     "nomadic":      "bool",      "population":   "int",     "slaves":       "int", }   But when I print it out with "\n".join(myDict) I get this  name nomadic dead port realOwner secret slaves team y x population id description   I know that a dictionary is unordered but it comes out the same every time and I've no idea why. Adding a CTAN package to a MacPorts-maintained TeX installation I have installed TeXlive through MacPorts and now discover that I am missing some package. For clarity let's use a trivial example and say I am missing lipsum.sty.  I now have two options:  Option 1  I go to a CTAN site, look for lipsum.sty, download it, and install it in ~/Library/texmf/tex.  This is not bad, but it leaves it possible that I will end up with a second lipsum at some point. That's why the second option is desirable.  Option 2  2.1-- I find out which MacPorts package includes lipsum.sty  and  2.2-- I sudo port install the necessary package.  How do I do 2.1? How to show (raise) all windows of an application? How does the four card limit work? I'm new to the game and trying to make my first constructed deck. My understanding of the card rule is I can only have four cards of one kind.  What does this precisely mean?  For instance, does this mean I can only have four rat cards total or four rat cards of several kinds? If two different cards do the same thing (like  and ), can I have four of each? When is it OK to shrink a Database? I know shrink is the devil: It reverses page order and is responsible for skin cancer, data fragmentation, and global warming.  The list goes on... That being said, say I have a 100 GB database and I delete 50 GB of data -- not on one table, but a general pruning of old data on a database wide level, covering 90% of the tables -- does this constitute an appropriate use case for shrinking the database?  If not, what are the appropriate steps to take to clean house after removing such a high percentage of data from a database?  I can think of two: Rebuild Indexes and Update Stats. What else? Linear functional on a Banach space is discontinuous then its nullspace is dense. A very basic question concerning the $R^2$ of OLS regressions   run OLS regression y ~ x1, we have an $R^2$, say 0.3 run OLS regression y ~ x2, we have another $R^2$, say 0.4 now we run a regression y ~ x1 + x2, what value can this regression's R squared be?   I think it's clear the $R^2$ for the multiple regression should be no less than 0.4, but is it possible for it to be more than 0.7?