put $LINE value instead of "$LINE"
How can I use variables in the LHS and RHS of a sed substitution?
So one of this question's  answers got me curious. What is the maximum damage a 20th level character can do with a 9th level Magic Missile by the rules to a single target.  So my best I've been able to find is Aasimar or Goblin WLK 1/WIZ 19   9th Level slot (1D4+1)(11) [keep in mind you only roll once for damage not 11 times]  per  Empowered Evocation (+5)(11) (assuming 20 INT) Hexblade Curse (+6)(11) (Proficiency Bonus +6)    Radiant Soul/Fury of the Small +20 (Level 20 Aasimar/Goblin)   For a total of (D4+12)(11)+20 for (min-max)avg (163-196)179.5  Am I looking at this correctly? Are there other abilities out there that can increase this?  Feel free to include non legendary magic items. NO TOMES PLEASE  Only use things available on D&amp;D Beyond please.  Acceptable books are :   Basic Rules DMG, MM, PHB Sword Coast Adventure's Guide The Tortle Package Volo's Guide to Monsters Xanathar's Guide to Everything and any officially released Adventure Book tikz relative coordinates Suppose one defines coordinates a and b. One may draw a line connecting these two coordinates (\draw (a) -- (b)). Suppose one desires to draw a line that is shifted upward 1 unit relative to a and b. A first guess is the command \draw (a){}+(0,1) -- (b){}+(0,1). This command, however, connects the point a+(0,1) to the point b, presumably because addition is subsequent to the draw command. How does one obtain the desired result (drawing from a+(0,1) to b+(0,1)?  MWE:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \draw[fill] (0,0) circle (2pt) coordinate (a);  \draw[fill] (5,0) circle (2pt) coordinate (b);  \draw (a) -- (b);  \draw (a){}+(0,1) -- (b){}+(0,1); \end{tikzpicture} \end{document}     Edit: How does one draw coordinates at a point shifted relative to the arithmetic average of the coordinates of two points (something akin to \node at ($(((s1)+(s2))/2)+(0,1)$)). A real $2 \times 2 $ matrix $M$ such that $$M^2 =  \begin{pmatrix} -1&amp;0 \\ 0&amp;-1-\epsilon  \\   \end{pmatrix}$$ (a) exists for all $\epsilon &gt; 0$. (b) does not exist for any $\epsilon &gt; 0$. (c) exists for some $\epsilon &gt; 0$. (d) None of the above is true.  Attempt: I couldn't think of any theory base to prove / disprove the existence of such a matrix. Could someone please give me a hint on how to go about this problem? Thank you very much for your help in this regard. Product of an exponential function of IDD variables if $x_i$ are IID  continuous random variables, with $E[x_i]=μ$, is the following correct?   $E\left[\prod_{i=1}^n(1+⍺\space x_i)^i\right] = \prod_{i=1}^nE\left[(1+⍺\space x_i)^i\right] =  \prod_{i=1}^n(1+⍺\space E\left[x_i\right])^i = (1+⍺\space μ)^n$  thanks! What is the "?" symbol in URL used for in php? How do you find all $n$ such that $\phi(n)|n$ Please tutor the usage of patchcmd and xpatch I understand that the  package provides a command \patchcommand that can be used to add material at the beginning and/or end of the replacement text of an existing macro. It works for macros with any number of normal arguments but has limitations for macros with optional arguments.   was introduced to take care of the above limitations as well as provide some additional functionality.   Now, when I try to comprehend the usage of the above packages by reading the user documentations (, ), I get the feeling that they move to implementation details a little too quickly compared to other package documentations. There are not enough explanations or examples.  I also tried to grasp the concepts by reading the  and more or less understood whatever is presented there. However, that is not enough.  So, do you think we can ask for a complete tutorial on the usage of patchcmd and xpatch? Explaining the usage of the relevant commands like \patchcmd, \pretocmd and \apptocmd as well as, \xpatchcmd, \xpretocmd and \xapptocmd with sufficient examples should suffice. Can you grapple/shove with the Hunter Ranger's Whirlwind Attack? The  states:     You can use your action to make a melee attack against any number of creatures within 5 feet of you, with a separate attack roll for each target.   The rules on "" state (the rules in shoving are effectively identical):     When you want to grab a creature or wrestle with it, you can use the Attack action to make a special melee attack, a grapple. If you're able to make multiple attacks with the Attack action, this attack replaces one of them.   I couldn't find any other features spells or abilities that allow a creature to make a flat "melee attack". If they had said "melee weapon attack" instead this would have meant the same thing but specifically have excluded grapple/shove as an option.  I am unsure whether the rules on grappling/shoving mean that the only time you can grapple/shove are when you take the Attack action, which you are not doing when using the Whirlwind Attack feature.   I would like answers to assume that the following ruling made in the  is correct:     Whirlwind Attack is unusual, in that it’s a single attack with multiple attack rolls... Am I using beta or stable? I have been doing so many sudo apt-get update/(dist-)upgrade since yesterday and  something happend - so that I am confused now whether I am using still beta or the stable version.   How do I figure that out? Changing ChildOf constraint influence to 0, but keeping the position it had as a child I had a sword object rigged with a single bone, with a ChildOf constraint making it a child of a sheath (with an influence of 1). Throughout an animation i move the sheath, and the sword bone follows as expected.  However, i cant seem to lower the influence of the sheath to zero and still have the sword retain the position it was just at, and I am wondering how i should go about making this happen.  Thanks for your time. Make cd automatically ls I find that I often do the following:  %&gt; cd bla/bla %&gt; ls   I would like it that whenever I cd into a directory it automatically does an ls.  I fiddled with my .bashrc for a while, but couldn't figure out how to make it happen. How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt;   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt; loaded by scripts.js--&gt;&lt;script type="text/javascript" src="new_script1.js"&gt;&lt;/script&gt; loaded by scripts.js --&gt;&lt;script type="text/javascript" src="new_script2.js"&gt;&lt;/script&gt; Convert LaTeX to HTML Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output: Layover at Narita, Japan. Do I need a transit visa? I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita? One thing I liked about Mint was that the terminal would usually show two colors: everything from the left to the $ would be one color, and everything past the $ would be another.   Is there a way to have this setup with Ubuntu? Prefix or adjective meaning "one and a half" Is there a prefix or adjective that means "one and a half", as "tri-" or "triple" is for "three"?  The exact usage I have is to describe "18" in terms of a dozen. Where I live they've started making 18-egg cartons, and the local grocer was wondering what name to give them in his computerised cash register, hoping for a single word.  Even slang, informal or invented term would do if there isn't such a term already. How to determine if a string is a valid variable name? How to exclude a package from apt-get autoremove? I'm in a situation where the list of orphaned packages to be removed by apt-get autoremove includes a package that I want to keep. Apparently I have accidentally removed a package which was depending on it. How can I now mark the package as explicitly desired, so that apt-get autoremove will not remove it? I'm looking for specific, real cases in which a causal relationship was inappropriately inferred from evidence of a correlation.   Specifically, I'm interested in examples that meet the following criteria:   Existence of the causal relationship was accepted as fact widely enough to have notable effects (on public policy, discourse, individual decisions, etc.). The link was inferred solely on the basis of correlative evidence (perhaps along with the existence of a coherent but unproven causal mechanism).  Causality has been objectively falsified or at least called into serious doubt.   The two examples that came to mind for me aren't quite ideal:   Sodium intake and blood pressure: As I understand it, it has since been determined that salt intake only increases blood pressure in sodium-sensitive individuals. The existence of a valid causal relationship (although not quite the one that was originally accepted) make this example less compelling. Vaccines and autism: I may have the background wrong, but I believe this link was surmised on the basis of both correlations and (fraudulent) experimental evidence. This example is weakened by the fact that (fake) direct evidence existed.   Note: I've seen this similar question:    My question differs primarily in that it focuses on notable, real-world examples and not on examples in which a causal link is clearly absent (e.g., weight and musical skill). How can I get apt to use a mirror close to me, or choose a faster mirror?