Sed error replacing partial string with variable
Replace strings in a file based on a list of strings and a list of corresponding replacements
Salesforce lightning get current users username How I would go about getting the current users username or first and last name?  I have been looking at this for the last couple of hours - I was just wondering how I would go about getting their name and then displaying it on the page.  For example the current user is 'John Smith' and in the lightning component I want to output John Smith's name like:     Welcome to our community John Smith! Solving $f(x+y) = f(x)f(y)f(xy)$ I want to propose for a Persian version of Super User (I will explain why later) so I want to create a proposal in Area 51, but this means non-English question and answers, Is this OK? P.S: This may be a question for other non-English proposals too. Update: The main question is: How can non-English site proposals pass the Commitment phase? How can the English community support non-English proposals? You can find some information in  about the Stack Exchange 2.0 Site Creation Process (specially Commitment phase):  How does this thermometer work? Intuitively, if Jon Skeet says that he’ll participate in the Sock Puppet Stack Exchange, that commitment is a better sign that the site will succeed than if we get a commitment from a random Internet user who has never participated in Stack Overflow. Sure, they’re both wonderful people, I’m sure, but Jon Skeet has proven that he likes to participate in Stack Overflow so it’s a good bet that he’ll participate in SockExchange, too. .... we’re going to require a selection of existing users with certain badges and reputation that proves that they’ll participate. For instance (and I’m making these numbers up), we might require that a site get at least 100 commitments from people with the Teacher badge, at least 20 from people with the Enthusiast badge, and at least 50 from people with a reputation of 1000 or more on some of our sites. Delete commits from a branch in Git Why didn't the basilisk bite in Chamber of Secrets destroy the Horcrux? What's the cleanest, most effective way to validate decimal numbers in JavaScript?  Bonus points for:   Clarity. Solution should be clean and simple. Cross-platform.   Test cases:  01. IsNumeric('-1')      =&gt; true 02. IsNumeric('-1.5')    =&gt; true 03. IsNumeric('0')       =&gt; true 04. IsNumeric('0.42')    =&gt; true 05. IsNumeric('.42')     =&gt; true 06. IsNumeric('99,999')  =&gt; false 07. IsNumeric('0x89f')   =&gt; false 08. IsNumeric('#abcdef') =&gt; false 09. IsNumeric('1.2.3')   =&gt; false 10. IsNumeric('')        =&gt; false 11. IsNumeric('blah')    =&gt; false Difference of Gamma random variables Class is not key value coding-compliant Ubuntu 14.04 System Logging Gaussian/Normal plots from a data distribution in scientific notation I am new to Tex and trying to plot a gaussian distribution from a set of values. I have the following set of values and would like to plot a normal distribution for them.  2.9954E-09  3.1314E-09  3.1155E-09  3.0940E-09  2.8861E-09  3.0875E-09  2.9685E-09  3.0532E-09  2.9003E-09  3.0931E-09  I have tried using the sample code but can't figue out where to input my values.   \begin{tikzpicture} \begin{axis}[   no markers,    domain=0:6,    samples=10,   ymin=0,   axis lines*=left,    xlabel=$x$,   every axis y label/.style={at=(current axis.above origin),anchor=south},   every axis x label/.style={at=(current axis.right of origin),anchor=west},   height=5cm,    width=11cm,   xtick=\empty,    ytick=\empty,   enlargelimits=false,    clip=false,    axis on top,   grid = major,   hide y axis   ]   \addplot [very thick,cyan!50!black] {gauss(x, 3, 1)};  \pgfmathsetmacro\valueA{gauss(1,3,1)} \pgfmathsetmacro\valueB{gauss(2,3,1)} \draw [gray] (axis cs:1,0) -- (axis cs:1,\valueA)     (axis cs:5,0) -- (axis cs:5,\valueA); \draw [gray] (axis cs:2,0) -- (axis cs:2,\valueB)     (axis cs:4,0) -- (axis cs:4,\valueB); \draw [yshift=1.4cm, latex-latex](axis cs:2, 0) -- node [fill=white] {$0.683$} (axis cs:4, 0); \draw [yshift=0.3cm, latex-latex](axis cs:1, 0) -- node [fill=white] {$0.954$} (axis cs:5, 0);  \node[below] at (axis cs:1, 0)  {$\mu - 2\sigma$};  \node[below] at (axis cs:2, 0)  {$\mu - \sigma$};  \node[below] at (axis cs:3, 0)  {$\mu$};  \end{axis}  \end{tikzpicture}   Your assistance will be highly appreciated. Thanks! These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out. Exercise 1:  Find all the numbers $x$ and $y$ such that: $a) \ GCD(x,y)=15, \ LCM(x,y)=150$ $b) \ GCD(x,y)=120 \ LCM(x,y)=1320$ $c) \ GCD(x,y)=100 \ LCM(x,y)=990$  Exercise 2:   Find all the numbers $m,n$ such that $GCD(m,n)=pq , \ LCM(m,n)=p^2qs$  where $p,q,s$ are prime  The first thing that is known to me is that $GCD(x,y) \cdot LCM(x,y)= x \cdot y$ Also $LCM(x,y)$ is at most $x \cdot y$ while $GCD(x,y)$ is at most $\max \{x,y\}$. Last thing is that $GCD(x,y)|LCM(x,y)$. Using all this I tried to solve the first exercise: $a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x \cdot y = 15 \cdot 150$ Another such pair is $(x,y)=(30,75), \ (x,y)=(75,30)$. Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist. Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), \ LCM(x,y)$ 'Good' review audits can be misleading Can I delete files or folders from /private/var/folders/? Prove every element of $G$ has finite order. Let $G$ be a group such that the intersection of all its subgroups which are different from $\{e\}$, is a subgroup different from $\{e\}$. Prove that every element of  $G$  has finite order.  Assume that $a$ has infinite order in $G$. Then let $y\neq e$ belong to the intersection of all subgroups of $G$ different from $\{e\}$. Then $y=a^n$ and $y$ will also belong to subgroup generted by $a^2$ hence  $y=a^{2m}$ for some integers $m$. This contradicts that $a$ has infinte order.  Is this correct? Automate taking a screenshot of specified area How to get rid of navigation symbols in beamer? Where is the open source project for the WMD editor used on this site? Suppose all the Associated Primes are Minimal. Let $R$ be a commutative Noetherian ring with unit and let $I$ be a fixed ideal. I am sorry if the following turns out to be a very silly question.  1) Suppose $\operatorname{Ass}(R/I)$ are all minimal, then what can we say about $R/I$?  One conclusion is that $I$ has a unique primary decomposition. If $R/I$ is CM, then $\operatorname{Ass}(R/I)$ are all minimal, but I don't think the converse is true. Can someone provide a counterexample?  2) Suppose $\operatorname{Ass}(R/I)$ are all minimal and have the same height. I still dont think we can conclude that $R/I$ is CM. Can someone provide a counterexample? Theorem 2.1.6 of Bruns and Herzog, CM Rings, gives a result in this direction but it needs additional hypothesis. It says that if every ideal $I$ is generated by height $I$ elements and $\operatorname{Ass}(R/I)$ are all minimal, then $R$ is CM.  It would be nice if someone can say something nice about the ring in the special situation described in 1) and 2).  Thanks. What are metaclasses in Python? Can I use my Schengen visa for a completely different purpose and entry point?