How to bind variable in inline style in LWC?
Expression Functions for Lightning Web Components
I'm using the following syntax for my code snippets  \begin{minipage}{\textwidth} \begin{lstlisting}[caption=&lt;something&gt;, label=&lt;something&gt;] The REST Endpoint URL     is http://api.flickr.com/services/rest/  To request the flickr.test.echo service,     invoke like this:    http://api.flickr.com/services/rest/       ?method=flickr.test.echo&amp;name=value  By default, REST requests will send a REST response. \end{lstlisting} \end{minipage}   and I would like to have  \begin{code}[&lt;caption&gt;, &lt;label&gt;] ... code ... \end{code}   which would behave exactly the same.   So I tried this thing but it won't compile and I can't spot the problem  \newenvironment{code}[2][]%     {         \minipage{\textwidth}          \lstset{             basicstyle=\ttfamily,             breaklines=true,             captionpos=b,             frame=bottomline,             extendedchars=true         }         \begin{lstlisting}[caption=#1, label=#2]     }     {         \end{lstlisting}         \endminipage     }   Error when running pdflatex  ! Package inputenc Error: Unicode char \u8:�\expandafter not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help. What is the LaTeX command for "em dash" (—)? I am trying to insert the symbol in the title of the question, which I copied from a PDF article, but it appears as space in the output file. What is the corresponding LaTeX command? Enqueue Stylesheets After Theme's "rtl.css" I am currently developing a theme with internationalization support, and would like to load stylesheets after my theme's rtl.css (an alternative style.css loaded for languages with a right-to-left reading order).  I am familiar with enqueueing my stylesheets and controlling their load order with dependencies using the wp_register_style() and wp_enqueue_style() functions, however rtl.css is loaded automatically by WordPress whenever the locale's language direction is rtl, and there doesn't seem to be a way to specify the stylesheet as a dependency.  I know I can conditionally enqueue stylesheets using the is_rtl() function, however  these stylesheets' &lt;link&gt; elements are still printed out before WordPress automatically prints rtl.css's. I could also simply manually insert &lt;link&gt;s to the stylesheets that I wish to depend on rtl.css right after the call to wp_head() in my theme's header.php file, but I believe it's bad practice to do so, and I would like my theme to be commercial quality.  How can I load stylesheets after WordPress loads rtl.css? USB-C Dongles killing Wifi on 2016/2017 MacBooks – Who’s to blame? I recently switched from my beloved MacBook Pro Retina (Late 2013) i5 2.6/16/512 to MacBook Pro (2017) Non-TB i5 2.3/16/512.  I purchased what from the build-quality looked like a good USB-C-to-DisplayPort cable with 4k/60Hz support, just to run into the very problem the Logicboard repair guru Louis Rossmann had described in : As soon as you plug in the USB-C dongle, the (2.4 GHz) Wifi stops working despite full antenna signal. Unplug the USB-C connector and you are immediately back in the game.  The big question I'm asking myself now: Who is to blame? Is this a design flaw in the current generation MacBooks with improper shielding or is it a design flaw in the various dongles?  I mean the fact that even Apple’s very own USB-C Digital AV Multiport Adapter is causing these WiFi issues (as you can learn from the many horrific ; but AFAIK have been fixed through a ), show that there’s something going horribly wrong. Send email with an attachment located in Google Drive I want to send a PDF attachment located on Google Drive from a Sheet.   Code I'm using is:  function sendEmails() {   var sheet = SpreadsheetApp.getActiveSheet();   var startRow = 2;  // First row of data to process   var numRows = 8;   // Number of rows to process   // Fetch the range of cells A2:B3   var dataRange = sheet.getRange(startRow, 1, numRows, 2)   // Fetch values for each row in the Range.   var file = DriveApp.getFilesByName('ScriptCarPass.pdf')   var data = dataRange.getValues();   for (i in data) {      var row = data[i];     var emailAddress = row[0];  // First column     var message = row[1];       // Second column     var subject = "Sending emails from a Spreadsheet";     MailApp.sendEmail(emailAddress, subject, message, {attachments: file});   } }   Everything works fine except the attachment - i.e. if I run without the attachment it works fine.  I keep getting error Invalid argument: inlineImages  I've also tried with:   attachments: [file.getAs(MimeType.PDF)]   but that gives error that .getAs isn't recognised. Understanding complete separation for logistic regression Why does logistic regression not converge for a linearly separable data set?   For linear separable data sets the model parameters go to infinity when mimizing the error function (according to Bishop2006, Pattern recognition and machine learning, section 4.3.2). I don't understand why. It must be connected to setting the score function, i.e. the derivative of the error function, to zero.  The error function is given by $E(\mathbf{w})$ as shown in the figure below. Where $\mathbf{t}$ is the target variable vector of the training set and $\mathbf{w}$ the parameter / coefficient vector. The posterior probabiltiy for class 1 is given by  $$y(n) = p(C_1|\mathbf{x}_n) = \sigma(\mathbf{w}'\mathbf{x}_n).$$ Where sigma is the logistic sigmoid function and $\mathbf{x}_n$ is the feature vector for instance $n$ including the predictors.     My second question to logistic regression is if the to posterior probabilities $p(C_1|\mathbf{x}_n)$ and $p(C_2|\mathbf{x}_n)$ sum to one? I always use lm() in R to perform linear regression of $y$ on $x$. That function returns a coefficient $\beta$ such that $$y = \beta x.$$  Today I learned about total least squares and that princomp() function (principal component analysis, PCA) can be used to perform it. It should be good for me (more accurate). I have done some tests using princomp(), like:  r &lt;- princomp( ~ x + y)   My problem is: how to interpret its results? How can I get the regression coefficient? By "coefficient" I mean the number $\beta$ that I have to use to multiply the $x$ value to give a number close to $y$. How can I execute command on startup (rc.local alternative) on Ubuntu 16.10 I am setting up quota on my Linode server running Ubuntu 16.10, and I get the following error      Cannot stat() mounted device /dev/root: No such file or directory   So to fix this, I reached  for the fix which is done by adding   ln -s /dev/xvda /dev/root /etc/init.d/quota restart   to the /etc/rc.local. But Ubuntu 16.10 doesn't uses rc.local anymore instead uses . What is the alternative for rc.local, How can I run the above commands on startup?  Also I enabled the service using systemctl enable rc-local.service but it didn't work for me. Any lead would be appreciated. if $a,b$ are nilpotent elements of a commutative ring $R$, show that $a+b$ is also nilpotent I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the containing window from the UserControl.   I have tried this.Parent, but it's always null. Does anyone know how to get a handle to the containing window from a user control in WPF?  Here is how the control is loaded:  private void XMLLogViewer_MenuItem_Click(object sender, RoutedEventArgs e) {     MenuItem application = sender as MenuItem;     string parameter = application.CommandParameter as string;     string controlName = parameter;     if (uxPanel.Children.Count == 0)     {         System.Runtime.Remoting.ObjectHandle instance = Activator.CreateInstance(Assembly.GetExecutingAssembly().FullName, controlName);         UserControl control = instance.Unwrap() as UserControl;         this.LoadControl(control);     } }  private void LoadControl(UserControl control) {     if (uxPanel.Children.Count &gt; 0)     {         foreach (UIElement ctrl in uxPanel.Children)         {             if (ctrl.GetType() != control.GetType())             {                 this.SetControl(control);             }         }     }     else     {         this.SetControl(control);     } }  private void SetControl(UserControl control) {     control.Width = uxPanel.Width;     control.Height = uxPanel.Height;     uxPanel.Children.Add(control); } Allow setuid on shell scripts $$T(n) = \sqrt{n} T \left(\sqrt n \right) + n$$  Master method does not apply here. Recursion tree goes a long way. Iteration method would be preferable.  The answer is $Θ (n \log \log n)$.  Can anyone arrive at the solution. How can't install a 338KB app when I have 474MB free? I have a Motorola phone, with 8GB of internal memory.  To my surprise, in a few days, I had 474MB of free space, but couldn't install a 338KB app!! So, clearly the limit of ~25MB referred to in some comments ( and ) are not always the case. A user just told me the following:     Actually it's "25MB or 10% of the storage", whichever is hit first. So   with e.g. 10 GB internal storage, it would hit you as soon as you drop   below 1 GB free. Crazy, but that's what it is.   Actually, that's not correct, because I didn't have to free up 1GB of internal memory. But anyway, half a gigabyte is enough to run a full operational system. I've seen similar complaints of hundreds of MB not enough to install apps ~ 1MB or similar small operations ( and ).  What's wrong here? Is there a term for an issue or activity that occurs only until the moment that you ask someone else to watch? Is there a term for the coincidence that occurs when an issue ONLY occurs until the moment that you ask someone else to watch or help you resolve it?    For example, having an issue with software until you try to show someone, then it stops being problematic.  Or an issue with the computer/phone that resolves as soon as a help ticket is put in.    The final example is when you have a problem with your car (funny noise, etc) - you hesitate taking it in for weeks because you know it will disappear as soon as the mechanic drives it...then it does.    This is different than a , where the action of applying a debugger, for example, changes the behavior of the activity being watched.  It's also different from a 'works on my machine' scenario, where only the original user has the problem.   What is it called when a problem resolves itself just by the mention of it?  Jinxing the issue? :)  I see this every day supporting my software product -- the users are experienced and are not making mistakes at one time then doing something different when I watch.  The problems also truly resolve (coincidentally) as soon as they ask for help - they do not reoccur.  I guess it's a case of synchronicity? I have just updated MiKTeX and have found that pstricks now appears to cause a problem. The error message I'm getting is     ("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pstricks.tex"      ! Undefined control sequence.      l.31 \if@check@engine   Not sure what's happening here. If I stop pstricks from being loaded things work ok.  Is there a known problem with the latest pstricks? Bounds of $I=\int_0^1\frac{\sin x}{\sqrt x}$ and $J=\int_0^1\frac{\cos x}{\sqrt x}$? How to find bounds of $$I=\int_0^1\frac{\sin x}{\sqrt x}$$ and $$J=\int_0^1\frac{\cos x}{\sqrt x}$$     A) $I&gt;2/3$ and $J&gt;2$   B) $I&lt;2/3$ and $J&gt;2$   C) $I&gt;2/3$ and $J&lt;2$   D) $I&lt;2/3$ and $J&lt;2$ "is" operator behaves unexpectedly with integers Why does the following behave unexpectedly in Python?  &gt;&gt;&gt; a = 256 &gt;&gt;&gt; b = 256 &gt;&gt;&gt; a is b True           # This is an expected result &gt;&gt;&gt; a = 257 &gt;&gt;&gt; b = 257 &gt;&gt;&gt; a is b False          # What happened here? Why is this False? &gt;&gt;&gt; 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not? Change all @username references in comments when a user changes their name? The fact that a user can change their name at will can lead to some confusion in the comments.  For instance, suppose a user named "foo" changes his name to "bar", all those comments signed by "foo" are now signed by "bar", but responses to "bar"'s comments still start with "@foo".  Could those "@foo" references in comments be changed to "@bar"?    A brief discussion on this has set me straight.  I didn't think it through.  Request withdrawn. Why did Harry's father emerge before his mother in HP and the Goblet of Fire? In Harry Potter book 4 (Goblet of Fire) Harry's wand 'links' with Voldemort's during their duel, and Voldemort's wand begins 'spitting out' each spell it had cast, in reverse order.  This produces false 'ghosts' of people he had killed with .  In the US printing, James Potter appears, followed by Lily.  If the spell order was supposed to be reversed, why did Harry's father's "ghost" emerge before his mother's, since it's repeatedly stated (before and after) that he died first? Bounded operator that does not attain its norm What is a bounded operator on a Hilbert space that does not attain its norm? An example in $L^2$ or $l^2$ would be preferred.  All of the simple examples I have looked at (the identity operator, the shift operator) attain their respective norms.