Please consider the following code  \documentclass[t]{beamer}  \usepackage{chemfig} \begin{document}  \begin{frame}   \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} \definesubmol{y}{-O-(=[2,.6]O)-!x!x!x!x!x!x!x!x} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}  \end{frame}  \begin{frame}   \frametitle{2nd frame} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)} \end{frame}  \end{document}   What I would like to achieve is to build submolecules first and then assemble them in successive frames. If I write the submolecules that I need within each frame, soon the whole code become complicate and cluttered.  The only solution I was able to find was to save the submolecules in an external .tex file, to be invoked each time from within frames when needed.  Something like the following  \documentclass[t]{beamer}      \usepackage{chemfig}     \begin{document}      \begin{frame}       \frametitle{1st frame}     \input{submoleculesChemfig.tex}     \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \begin{frame}       \frametitle{2nd frame}      \input{submoleculesChemfig.tex}          \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \end{document}   Is there a better solution, without using the external file ? Thanks
I want to utilize beamer's \uncover command within ChemFig's reaction scheme environment, i.e.:  \schemestart     \chemname[-1ex]{\chemfig[][scale=1]{*5(-=(-=[:-60]O)-O-=)}}{Furfural}     \uncover&lt;2-&gt;{         \arrow(furfural--mf){-&gt;[*{0}HDO][]}         \chemname[-1ex]{\chemfig{*5(-=(-)-O-=)}}{2-Methylfuran}     } \schemestop   However, this results in numerous "undefined control sequence" errors.  Is there a way to use beamer's \uncover command within ChemFig?  Here is a full MWE:  \documentclass[10pt]{beamer} \usepackage{chemfig}  \begin{document}  \begin{frame} \frametitle{Stuff}  \schemestart     \chemname[0ex]{\chemfig[][scale=1]{*5(-=(-=[:-60]O)-O-=)}}{Furfural}     \uncover&lt;2-&gt;{         \arrow(furfural--mf){-&gt;[*{0}\textbf{HDO}][]}         \chemname[0ex]{\chemfig{*5(-=(-)-O-=)}}{2-Methylfuran}     } \schemestop  \end{frame}  \end{document}
Extrude and bevel an imported svg curve I exported an svg 1.1 file from Adobe Illustrator CS6. I joined all the shapes by pressing Ctrl+J. I set the curve shape to 2D. Then I extruded using the right hand side panel:    So far so good. But when I try to apply even a slight bevel, all hell breaks loose:    It does get less insane if I bring the bevel down by multiple factors of 10... But then I really don't have much of a bevel.  Am I doing something wrong? Am I using the wrong kind of object? Should I be doing this with meshes? Do my curves just need cleaning up? Is there any way to call the parent version of an overridden method? (C# .NET) In the code below I tried in two ways to access the parent version of methodTwo, but the result was always 2. Is there any way to get the 1 result from a ChildClass instance without modifying these two classes?  class ParentClass {     public int methodOne()     {         return methodTwo();     }      virtual public int methodTwo()     {         return 1;     } }  class ChildClass : ParentClass {     override public int methodTwo()     {         return 2;     } }  class Program {     static void Main(string[] args)     {         var a = new ChildClass();         Console.WriteLine("a.methodOne(): " + a.methodOne());         Console.WriteLine("a.methodTwo(): " + a.methodTwo());         Console.WriteLine("((ParentClass)a).methodTwo(): "          + ((ParentClass)a).methodTwo());         Console.ReadLine();     } }   Update ChrisW posted this:     From outside the class, I don't know   any easy way; but, perhaps, I don't   know what happens if you try   reflection: use the Type.GetMethod   method to find the MethodInfo   associated with the method in the   ParentClass, and then call   MethodInfo.Invoke   That answer was deleted. I'm wondering if that hack could work, just for curiosity. Check if file is already open I try to share my internet connection from my laptop (win7) via virtual wifi to my android phone (Samsung Gio). In an elevated cmd I enter  netsh wlan set hostednetwork mode=allow ssid=VWiFi key=xxx keyUsage=persistent netsh wlan start hostednetwork   The android phone connects to VWifi, but the internet connection is hardly usable on the phone while the internet connection on my laptop is very good at the same time (some Mbps)  What works: I can start WhatsApp, type and receive text messages, so I guess there's no general problem, i.e. config can't be completely wrong - but when I try to send pics or audio or try to receive pics or audio messages then I see from the network monitor on my laptop that the connection doesn't even try to send or receive anything (0 kbps up/down).  What sometimes works: connection to some websites with acceptable speed - but sometimes I don't get a single byte. Also this is not reproducible - the same website sometimes shows up, sometimes android tells my the site was not available.  What never worked so far: connecting to Google Play Store. It always tells me to check my connection and try again.  What I tried so far: I read on problems with IPv6, but no matter if I enable or disable IPv6 in the settings of the virtual Wifi, it doesn't help.  I also read about problems related to static/dynamic IPs, my netsh interface ip show config tells my that dchp isn't enabled on my virtual Wifi connection. If I try to enable it by netsh interface ip set address "myWificonnection" dhcp the android phone won't even connect anymore to the virtual Wifi at all. So there may be a solution here if android would connect with dhcp enabled.  I also read about problems with MAC filters, but this is no router, there's no MAC filter in the virtual Wifi.  When I directly connect to a real WLAN router, everything is fine and working. I have the problems only when trying to get into the internet via the virtual Wifi.  Any ideas what may be configured wrong? Either on laptop or on android? Thanks. Forcing an 'added' alias to every command Is it possible to forcibly add a timing alias (for lack of a better way to phrase it) to every command in bash? For example, I would like to have a specific user who, whenever a command is run, it is always wrapped either with date before and after, or time. Is this possible, and, if so, how? I am unable to open gnome-control-center due to an error stemming from pop repositories. Ubuntu 20.04 "In a party people shake hands with one another" Lebesgue measurable set that is not a Borel measurable set Is it possible to switch from one area of graduate study to another in US universities? For example, suppose someone has enrolled in a computer science phd program. Can he switch over to math(or physics) phd program in the same school later?(or say from applied mathematics to pure mathematics?)  What are the steps for doing for doing that? How to rename multiple files sequentially from command line? How to rename file as below  AS1100801000002.RAW7AGS  AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3   to new name  AS1.txt AS2.txt AS3.txt AS4.txt AS5.txt AS6.txt AS7.txt This or That person Today I heard a speaker use the phrase "this person", referring to the subject-person of the story they were telling, and I heard it as (that person). Between the words “this” or “that” in context with the phrase and story-tense, which should you use. Generalized Tube Lemma How does commands like ls know what its stdout is?  It seems ls is operating different depending on what the target stdout is. For example if I do:  ls /home/matt/tmp    the result is:  a.txt b.txt c.txt   However if I do  ls /home/matt/tmp | cat   the result is (i.e. new line per result):  a.txt b.txt c.txt   The process is passed a file descriptor 1 for stdout right? How does it determine how to format the result? Does the file descriptor reveal information? Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often  has to be cancelled  with  \!, as has been observed  various  times:         I'd like to know why this explicit \, is there &ndash; what would go wrong without it?    From amsmath.dtx:  \newcommand{\start@aligned}[2]{%     \RIfM@\else         \nonmatherr@{\begin{\@currenvir}}%     \fi     \savecolumn@ % Assumption: called inside a group %    \end{macrocode} %    The \cs{null} here is to keep the \cs{,} glue from causing the %    invocation of the clause in \tex/'s built-in tag placement %    algorithm that can cause an equation to be shifted all the way over %    to the margin. %    \begin{macrocode}     \null\,% Reverse Triangle Inequality in vector space I have already proved Triangle Inequality $\lVert v+w\rVert \le \lVert v \rVert+\lVert w \rVert$ in vector space $\mathbb{R}^n$. However, I'm having difficulties proving the Reverse Triangle Inequality in the vector space.  I have started with   $$\lVert v \rVert^2=v \cdot v-w\cdot w+w\cdot w \le \lVert v-w \rVert+\lVert w \rVert^2$$ $$\lVert w \rVert^2=w \cdot w-v\cdot v+v\cdot v \le \lVert w-v \rVert+\lVert v \rVert^2$$  based on the Triangle Inequality but I don't know if it is correct. If this is right, I think I can go on with proving it the same way I would the normal Reverse Triangle Inequality. I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):  $$ A = \begin{bmatrix} \fbox{0} &amp; \fbox{0} &amp; 0 \\  \fbox{0} &amp; \fbox{0} &amp; 0 \\ 1 &amp; 1 &amp; 1 \\  \end{bmatrix}$$   But how can I outline elements of the submatrix like in the picture below? I need just a frame where some elements are located. Logic Behind StackOverflow Question IDs Space faring human race encounters one highly advanced spaceship.  The one ship tells the human space fleet to go away and leave them alone. We don't listen and our ships are destroyed.  Human spy is sent to the alien world. Aliens look virtually identical to humans except they have no cartilage in their nose and the 'females' are only capable of mating every seven years. The human spy tells this story and is a brilliant tactician. He enters into a game tournament where they play a very complicated version of chess.  Human spy interacts with a higher ranking military officer who has a human female wife.  Human spy gets caught and when he is ultimately returned to Earth he advises humanity to unconditionally surrender to the alien race.  Humans eventually win because the alien males take human wives and their alien DNA is diluted in the vast human gene pool.  Looking for the title and author if anyone can recall them.  06/15 - update  I found the anthology. 'Second Game' was in 'The Arbor House Treasury of Great Science Fiction Short Novels' which came out in 1980 and 1981.  I did read the original story from 1958 which was actually a nominee for the Hugo Award for Novelette in 1959. @track vs @api (Lightning Web Components) Let's say we have this code for a LWC:  &lt;!-- helloExpressions.html --&gt; &lt;template&gt;     &lt;div class="slds-m-around_medium"&gt;         &lt;lightning-input name='firstName' label="First Name" onchange={handleChange}&gt;&lt;/lightning-input&gt;         &lt;lightning-input name='lastName' label="Last Name" onchange={handleChange}&gt;&lt;/lightning-input&gt;         &lt;p class="slds-m-top_medium"&gt;Uppercased Full Name: {uppercasedFullName}&lt;/p&gt;     &lt;/div&gt; &lt;/template&gt;   and this is the JS file:  // helloExpressions.js import { LightningElement, track } from 'lwc';  export default class HelloExpressions extends LightningElement {     @track firstName = '';     @track lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   firstName and lastName have been decorated with @track. Now as per the documentation, decorating a property with @track makes it private and reactive, while to mark a property public and reactive, use @api.  So if I just change the decorator to @api for both these variables, it should work. I am referring these from the same component only. But it's not working.  UPDATE: 27th Feb -------------------- Somehow it's working today. I just changed the decorator of the variables to api.  import { LightningElement, api } from 'lwc';  export default class HelloExpressions extends LightningElement {     @api firstName = '';     @api lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   So it's working. How to find the real user home directory using python?