I just decided to give a try to Ubuntu 17.10, but as soon as I tried to set my compose Key, I can't find the place to do it.  Usually it was in Settings > Devices > Keyboard > Typing, but in this section I only find two options:  Switch to next input source Switch to previous input source   Any ideas? Thanks in advance!
Now that Unity is gone, the usual way of setting a Compose Key (via Keyboard Preferences > Layout) no longer works (because in Ubuntu 18.04, Devices > Keyboard has no Layout tab).  How do we set a Compose Key in Ubuntu 18.04 Bionic Beaver?
Where in the DNS process are NS records used? I register a new domain, mynewdomain.com, at a hosting company.   In the advanced DNS settings there is an A record which maps mynewdomain.com to a ip address.  In my webhost control panel, it shows me the nameservers for the domain: ns1.mywebhost.net &amp; ns2.mywebhost.net  When I type in mynewdomain.com into a browser and hit enter I believe the following happens.   ISP resolver searches "." nameserver ISP resolver then told to search ".com" nameserver instead. ISP resolver finds mynewdomain.com, and searches the zone file to get the A record.     So my question is, where does my webhost's nameservers come into play? I believe the flaw in my logic comes from the fact that my zone file (in which the A record is kept) is stored on ns1.mywebhost.net). But if that is the case, how does my ISP resolver know to look here? (because I didn't type this into my address bar) How can I check for Python version in a program that uses new language features? If I have a Python script that requires at least a particular version of Python, what is the correct way to fail gracefully when an earlier version of Python is used to launch the script?  How do I get control early enough to issue an error message and exit?  For example, I have a program that uses the ternery operator (new in 2.5) and "with" blocks (new in 2.6).  I wrote a simple little interpreter-version checker routine which is the first thing the script would call ... except it doesn't get that far. Instead, the script fails during python compilation, before my routines are even called. Thus the user of the script sees some very obscure synax error tracebacks - which pretty much require an expert to deduce that it is simply the case of running the wrong version of Python.  I know how to check the version of Python. The issue is that some syntax is illegal in older versions of Python. Consider this program:  import sys if sys.version_info &lt; (2, 4):     raise "must use python 2.5 or greater" else:     # syntax error in 2.4, ok in 2.5     x = 1 if True else 2     print x   When run under 2.4, I want this result  $ ~/bin/python2.4 tern.py  must use python 2.5 or greater   and not this result:  $ ~/bin/python2.4 tern.py    File "tern.py", line 5     x = 1 if True else 2            ^ SyntaxError: invalid syntax   (Channeling for a coworker.) Let $\{E_i\}_{i=1}^n$ be finitely many disjoint sets of real numbers (not necessarily Lebesgue measurable) and $E$ be the union of all these sets. Is it always true that  $$ m^\star (E)=\sum_{i=1}^N m^\star(E_n) $$ where $m^\star$ denotes the Lebesgue outer measure? If not, please give a counterexample. The Vitali set is a counterexample in the countable case, but I am not sure whether it is false in finite case. Relativity and Galaxy Rotation Speed Unable to run any GRASS 7 algorithms in QGIS 2.18.10 on Windows 7(64) Can I change some but not all Apple keyboard function keys (dim vs F1, bright vs F2)? I want to override F1 and F2 behavior, since I have external display and Mac can't control display's brightness. The rest of the keys should retain their non Fx  I know about "Use all F1-F12 keys as standard function keys.", but I don't want to change all of the keys to be F when pressed, just some of them. (For me single press music and volume control is necessary.)  Is there a way to pick some of the function keys to default to numbered function instead of the "Apple" definitions system wide? How do I disable auto-maximizing of newly launched windows in GNOME? "How are" or "How is" the wife and kid? By default after a new user signs up, a redirect to the home page happens.  But in such case I want to redirect such user to another page like node/35.  In this node/35 I then want to display some content. Strange object.ray_cast() behavior object.ray_cast() is not behaving as I would expect in Blender 2.77. I understand that it expects object local coordinates, but this problem happens when the object is not translated, rotated, or scaled.  If I edit the shape of the cube mesh without moving the cube, the results of ray_cast() seem plain wrong.  Steps to reproduce   Create a cube at 0,0,0 Move a vertex of the cube from 1,1,1 to 5,5,5 Create an empty called "src" at 2,2,2 Create an empty called "dst" at 2,2,6   Run this python  cb = bpy.data.objects['Cube'] src = bpy.data.objects['src'] dst = bpy.data.objects['dst'] hit, loc, norm, face = cb.ray_cast(src.location, dst.location) bpy.ops.object.empty_add(location = loc)   This is the result on my system. The new Empty created at the interesection point is selected:    The source and the destination are both at x = 2 and y = 2. The cube has a surface at x = 2 and y = 2. So why on earth is the intersection point at x = 2.22222, y = 2.22222? "Easy" vs. "simple" Are those two words equivalent or is there a difference? When would I say something is easy rather than simple, or vice versa? How do I escape a backtick ` within in-line code in Markdown? What is the purpose of a serial number? How to append something to an array? What is the procedure for taking down Titans? Do MOSFETs have a diode built into them? I have noticed that a MOSFET symbol has a little diode in it (or at least what looks like a diode). Does this mean I do not have to worry about using a diode in a circuit that runs a motor using one? I would have used a diode in order to prevent reverse voltage from turning the motor by hand. Expected number of games played in a game with 'win by two' rule. Calvin and Hobbes play a match consisting of a series of games, where Calvin has probability p of winning each game (independently). They play with a “win by two”” rule: the first player to win two games more than his opponent wins the match. What is the expected number of games played? My attempt: I use Markov chains. Let $S$ denote that starting state, $W$ and $L$ denote the states where Calvin and Hobbes win respectively. Then, I have $$\mu_S = 1+ p\mu_W+q\mu_L $$ $$\mu_W = 1+ q\mu_S $$ $$\mu_L = 1+ p\mu_S $$ where $\mu_j$ denote the expected number of games from state $j$. Solving the system, I get the solution $\mu_S = \frac{2}{1-2pq}$ which I think is correct. I however would like to know how to approach it with geometric distribution instead of Markov chains. I read one solution where the number of games is given as $1+\text{Geom}(p^2+q^2)$ but I do not understand it. My understanding is that for the game to stop, the required probability is $p^2 + q^2$ since this is the probability that either Calvin or Hobbes win two games in a row. How to use this information in a Geometric random variable? Thanks. I need to add a coloured line before my caption; this is what I used:  \usepackage[labelfont=bf]{caption}  \DeclareCaptionFormat{myformat}{\hrulefill #1  #2 #3} \captionsetup[figure]{format=myformat}   but the figure turns out to be line this:    and not a horinzontal line which what I want  2) I want the line to be coloured RGB [152 204 204] with thickness about the same as \top rule. Can anyone show me how to do this? I'll be traveling to Berlin, Germany from Colombo, Sri Lanka via Turkish Airways.  The itinerary would be: Colombo  &lt;--> Istanbul- || Istanbul- &lt;--> Berlin   The flights are all on one ticket. Would I be required to claim and re-check my baggage at Istanbul or can I check it in all the way from Colombo to Berlin without re-checking in the baggage again? Help with multirow table I am trying to wrap text in the multirow column (1st one) and only have the vertical lines inside the table if that makes sense.   Can anyone help me? `  \begin{table*}[!htbp] \centering \renewcommand{\arraystretch}{1.4} \begin{tabular}{|c| p{2cm}|c|c|c|c|} \cline{3-6} &amp;&amp;\multicolumn{2}{c|}{\textbf{Gravité du Dommage G1}} &amp; \multicolumn{2}{c|}{\textbf{Gravité du Dommage G2}}\\  \cline{3-6} &amp;&amp;\textbf{Fréquence F1} &amp; \textbf{Fréquence F2} &amp; \textbf{Fréquence F1} &amp; \textbf{Fréquence F2}\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O1}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O2}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O3}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \end{tabular} \end{table*}