I am new to pythonTex. I get following error. I checked working of simple python code. However, when I try to import math within pycode it gives error.  using code:  \begin{pycode} import math  from pint import UnitRegistry  u = UnitRegistry()  alpha = 0.04  sigmaW = 72.86e-3 * u.newton / u.meter  mu = 8.9e-4 * u.pascal * u.second  \end{pycode}     I get following error:  ----  Messages for py:default:default  ---- * PythonTeX stderr - error on line 364:     File "&lt;outputdir&gt;\py_default_default.py", line 140       import math       ^   IndentationError: unexpected indent  -------------------------------------------------- PythonTeX:  notes - 1 error(s), 0 warning(s)  C:\texlive\2018\bin\win32\runscript.tlu:803: command failed with exit code 1: python.exe c:\texlive\2018\texmf-dist\scripts\pythontex\pythontex.py notes.tex
I am new to pythontex. I could run simple python code. However, I get error with slightly complex things.  The error I get is following:  This is PythonTeX 0.16  ----  Messages for py:default:default  ---- * PythonTeX stderr - error on line 211:     File "&lt;outputdir&gt;\py_default_default.py", line 62       MW= 18e-3 u.kilogram/ u.mole                 ^   SyntaxError: invalid syntax  -------------------------------------------------- PythonTeX:  notes - 1 error(s), 0 warning(s)  C:\texlive\2018\bin\win32\runscript.tlu:803: command failed with exit code 1: python.exe c:\texlive\2018\texmf-dist\scripts\pythontex\pythontex.py notes.tex   Part of the code that has error is :  \begin{pycode} import math from pint import UnitRegistry u = UnitRegistry() alpha = 0.04 sigmaW = 72.86e-3 * u.newton / u.meter mu    = 8.9e-4 * u.pascal * u.second densityW = 1000 * u.kilogram / (u.meter ** 3) densityIPA = 1000 * u.kilogram / (u.meter ** 3) densityEtoh = 1000 * u.kilogram / (u.meter ** 3) H = 1e-6 * u.meter W = 28e-6 * u.meter L= 32e-6 * u.meter MW= 18e-3 u.kilogram/ u.mole MIPA= 60.1e-3 u.kilogram/ u.mole MEtoh= 46.07e-3 u.kilogram/ u.mole R0=8.31446 u.joule / (u.mole * u.kelvin) T0= 298 u.kelvin N= 10 D0=2.4e-5 (u.meter ** 2)/(u.second) C0=17.08e-3 u.kilogram/(u.meter ** 3) tauevW=(densityW * N * R0 * T0 * (W **3))/(6* math.pi * D0 * C0 * sigmaW * MW) \end{pycode}   Does anyone know how to solve this issue?
Humanity meeting another similar intelligent life form deep into space (or not)? I'm looking for a plot line (it should be a short story) that depicts Earth population (or their close descendants) establishing contact with another intelligent life form deep into space.   After careful studying of DNA samples and language / communication symbols they then realize that the civilization in question is also from Earth but that they departed very long ago and travelled throughout the galaxy in the completely opposite direction so that they are now meeting practically at the point of the circle opposite to Earth. There might have been some anatomical differences as well.  As far as I can remember, the story concludes shortly after that.  This should be a work of a well-known SF author, so I'm hoping for a quick response (if time didn't corrupt my memory too much).  I don't think it was part of an anthology, but it's entirely possible it was in a magazine.  As for the timeline, I've read it about 2-3 years ago, but since I have a passion for older SF works it might not be of much use.  Edit: Not sure if this could help but for what it's worth, it might be contained in . I understand that the alphabet for the English language is not strictly English as languages such as French, Dutch and many more use the same alphabet, with few additions in other languages. Is Roman alphabet the common term to refer to this set of symbols for writing texts? I'm running Apache2 in a docker container, and want to write nothing to the disk, writing logs to stdout and stderr. I've seen a few different ways to do this (,  ) but these seem like hacks. Is there no way to do this by default?   To be clear, I do not want to tail the log, since that will result in things being written to the disk in the container. How can I tell which version of Windows 8 I am running? Standard, Pro, Enterprise, or RT? I have searched everywhere but cannot find how to tell which version of Windows 8 I am running.  I have the system properties on the screen but it just says "Windows 8," nothing else.  Is this the standard edition?  EDIT 04142015:  My new favorite way to do this is to go to the commnand prompt and issue (same with Windows 7):    wmic os get caption  Response:  Microsoft Windows 8.1 Pro How to get correct scale values? The scale of my map is wrong, no matter what coordinate system I use in my project. The map and all objects show the correct coordinates but the scale of the map shows nonsense and the measurement tool gives wrong dimension.   The map should be like 1:10000 but qgis shows 1:1. Anyone an idea? how to read huge csv file into R by row condition? The following exercise comes from Fulton's Algebraic Curves:     Let $k$ be an infinite field and $V = \{(t,t^2,t^3) \, ; \, t \in k \} \subset \mathbb{A}^3(k)$. Show that $V$ is algebraic and compute $I(V)$ by giving a finite set of generators.   Now, showing $V$ is algebraic is easy by noting that $V = V(X^2-Y, X^3-Z)$, but I can't find a way to describe $I(V)$ explicitly. Obviously $(X^2-Y)(X^3-Z) \in V$, but how can I find the actual generators of this ideal? What are good ways to make pdflatex output copy-and-pasteable? One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the right output encoding. There are at least two important aspects to this:   In the ideal case, Unicode would be the output encoding. Ligature glyphs (such as ﬁ) are ideally de-ligated in the output (here: "fi").   It seems that output encodings are specified through the fontenc package. What is the range of possible output encodings, and most importantly: Is there a way to specify a Unicode output encoding and one that deals with ligatures in the intended way?  (Note: It is important to distinguish output from input encodings. How to use different input encodings in LaTeX has been documented widely. My understanding is that this is best handled by the inputenx package, as it supersedes the inputenc package.)    Quick guide to the solutions: The information in the answers and answer threads is a bit distributed, so here the short summary: one approach is to use \input glyphtounicode together with \pdfgentounicode=1; the other approach is to use cmap/mmap.  Addendum: Sometimes one will need to load the package accsupp and enclose one's macro definition in \BeginAccSupp{method=hex,unicode,ActualText=&lt;codepoint&gt;}[...]\EndAccSupp{} to generate a specific code point. See the caveat about non-BMP code points  and the fix (starting from accsupp version v0.4, 2012/11/18) , which provides the new unichar package option. Send data from Lightning Web Component (LWC) to a Visualforce page I am adding an LWC component in visualforce and need to add a handler for an event fired in the LWC component on the visualforce page. When googling all I can find is examples of how to do this with aura component using application events. LWC controller: handleSearchClick() {              const searchinfo = {          shipper: this.shipper,         system: this.system,         product: this.product,         status: this.template.querySelector('c-lwc-multi-select').value(),         period: this.period       };     this.dispatchEvent(new CustomEvent(         'dosearch',          {             detail: { data:  searchinfo},             bubbles: true,             composed: true,         }     ));     console.log({ 'lwcNominationSearch searchinfo': searchinfo }); }  AURA app: &lt;aura:application extends=&quot;ltng:outApp&quot; access=&quot;GLOBAL&quot;&gt; &lt;aura:dependency resource=&quot;c:lwcNominationSearch&quot; /&gt; &lt;aura:dependency resource=&quot;markup://force:*&quot; type=&quot;EVENT&quot;/&gt; &lt;/aura:application&gt;  Visualforce: &lt;div id=&quot;rcontainer&quot;&gt; &lt;/div&gt;  &lt;script&gt;     $Lightning.use(&quot;c:NotificationSearch_ltngoutApp&quot;, function()     {         $Lightning.createComponent(         &quot;c:lwcNominationSearch&quot;,         {},         &quot;rcontainer&quot;,         function(cmp)         {             console.log('component created');              //$A.eventService.addHandler({ &quot;event&quot;: &quot;c:myEvent&quot;, &quot;handler&quot; : visualForceFunction})               $A.eventService.addHandler({                 event: 'dosearch',                 handler: function (event) {                          console.log(&quot;vf event success&quot;);                 }             });          });     }); &lt;/script&gt; Prove that the product of a non-zero rational and irrational number is irrational. Could you please confirm if this proof is correct?  Theorem: If $q \neq 0$ is rational and $y$ is irrational, then $qy$ is irrational.  Proof: Proof by contradiction, we assume that $qy$ is rational. Therefore $qy=\frac{a}{b}$ for integers $a$, $b \neq 0$. Since $q$ is rational, we have $\frac{x}{z}y=\frac{a}{b}$ for integers $x \neq 0$, $z \neq 0$. Therefore, $xy = a$, and $y=\frac{a}{x}$. Since both $a$ and $x$ are integers, $y$ is rational, leading to a contradiction. How would I shift my whole set of equations/calculations at the left, to be aligned with "Example"?        \documentclass[11pt,a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array} \usepackage{parskip}   \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem*{cor}{Corollary}  \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers \newtheorem{exmp}[thm]{Example} % same for example numbers \newtheorem{conj}[thm]{Conjecture}  \theoremstyle{remark} \newtheorem*{rem}{Remark} \newtheorem*{note}{Note}   \title{My Thesis Title} \author{My Name} \date{\today} \renewcommand\labelenumi{(\theenumi)} \renewcommand\theenumi{\roman{enumi}} \setlength{\parindent}{1em}  \begin{document}  \chapter{Addition}  \begin{exmp}  Here is an example. \begin{align} \nonumber (a+b)^3 &amp;= (a+b)^2(a+b)\\ \nonumber &amp;=(a^2+2ab+b^2)(a+b)\\ \nonumber &amp;=(a^3+2a^2b+ab^2) + (a^2b+2ab^2+b^3)\\ \nonumber &amp;=a^3+3a^2b+3ab^2+b^3 \nonumber \end{align} \end{exmp} \end{document} Extruding a circular shape from a non-circular object I need to extrude a circular shape from a surface that's basically just a grid of quads. What's the best practice to do this without screwing up the topology too much?  I basically want to have a circular face I can extrude, in order to have a cylinder like protuberance on the object, something like this: Distance between two hyperplanes I have two parallel hyper planes $$a^Tx=b_1,a^Tx=b_2$$ where $a \in \mathbb{R}^n, x \in \mathbb{R}^n ,b \in \mathbb{R}$ and I want to find the distance between the two. I have read that the distance between the two hyperplanes is also the distance between the two points $x_1$ and $x_2$ where the hyperplane intersects the line through the origin and parallel to the normal vector $\vec a$. These points are given by $$x_1=\frac{b_1}{\|a\|^2_2}a$$ and $$x_2=\frac{b_2}{\|a\|^2_2}a$$ Then the distance is $|x_1-x_2|$ but I don't really understand how we got $x_1$ and $x_2$. Show/Hide CSS Ignored When Inside an SLDS Grid Column What are quarks made of? So atoms are formed from protons and neutrons, which are formed from quarks.  But where do these quarks come from? What makes them? How to prove that $\lim\limits_{\epsilon\rightarrow 0}\int_{-\infty}^{\infty}f_\epsilon(x)g(x)dx=g(0)$ (Dirac delta function)) I'm currently studying the Dirac delta function using a textbook which unfortunately provides only partial solutions to its explanations. Why does $\lim\limits_{\epsilon\rightarrow 0}\int_{-\infty}^{\infty}f_\epsilon(x)g(x)dx=g(0)$ if $ f_\epsilon=\frac{1}{2\epsilon}e^{-\frac{|x|}{\epsilon}}$? Any help is very much appreciated. "Where will you go" vs. "Where you will go" Which sentence is correct between these?      Where will you go?     Where you will go? How to use different domains for multilingual sites and keep users logged in? I have a site that is in French and English. I am able to successfully setup so that users can switch back and forth between the two domains to view either language, however I cannot seem to keep users logged in. When they are logged into the english domain and then switch to the french domain they are required to login again. However if they switch back to the english domain they are still logged in.  As an example we'll use www.english-domain.com as the base (default) domain and www.french-domain.com as the secondary domain  In settings.php I have modified the following, however it doesn't seem to be keeping them logged in. Am I missing something?  /**  * Drupal automatically generates a unique session cookie name for each site  * based on its full domain name. If you have multiple domains pointing at the  * same Drupal site, you can either redirect them all to a single domain (see  * comment in .htaccess), or uncomment the line below and specify their shared  * base domain. Doing so assures that users remain logged in as they cross  * between your various domains.  */ $cookie_domain = 'english-domain.com';   Note: That I have also flushed both site and browser cache as well as deleted any cookies left on my machine.  Update:  Here are my language settings: I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc... I have a final exam tomorrow for fluid mechanics and I was just looking over the practice exam questions. They do not provide solutions. But pretty much I have to define pressure at a point and also say why pressure is scalar instead of a vector.  I am thinking pressure at a point is $P=\lim_{\delta A \to 0} \frac{\delta F}{\delta A}$. Please let me know if I am wrong.   But I do not know at all why pressure is a scalar instead of a vector. I know it has something to do with $d \mathbf{F}=-Pd \mathbf{A}$