Python decorator, self is mixed up
Decorating Python class methods - how do I pass the instance to the decorator?
Voltage at soldering iron tip, should I be worried? I discovered that my soldering iron has voltage at the tip and it seems to increase the hotter the iron gets. Should I be worried? I've been trying to repair an old CRT monitor and I'm worried the issues I've been having are due to this cheap iron damaging something.  How to meassure voltage of an soldering iron tip? Where to put probes? Show that  $$\frac{\sin x}{\cos 3x}+\frac{\sin 3x}{\cos 9x}+\frac{\sin 9x}{\cos 27x} = \frac{1}{2}\left(\tan 27x-\tan x\right)$$ How do you factorise $x^3z - x^3y - y^3z + yz^3 + xy^3 - xz^3$? I'm trying to factorise $$ x^3z - x^3y - y^3z + yz^3 + xy^3 - xz^3 $$ into four linear factors.  By plugging it into WolframAlpha I've learned that it's $$-(x-y)(x-z)(y-z)(x+y+z)$$  My question is: what are the steps involved in factorising the expression? Is there a method I don't know about that I'd have access to with my limited maths?  Really appreciate any help! Consider the infinite line, $L$ in $2D$ consisting of all points $p$ such that $p.[0.3511 0.9263]= 6$. Find the point on the line closest to $(10, 20)$. Find the point on the line closest to $(4, 3)$. Find the distance from the line to both of these points.  Hi, I was reading the book $3D$ Maths Primer for Graphics and Game Development. The book mention about $2$ formulas but I don't know how to apply them.   $\text{Signed distance} = d-q.n$  $q' = q + (d-q.n)n$  for any point $q$, the point $q'$ that is the closest point on $L$ to $q$.  This is what I have tried,   Since the lines are parallel then the normal are the same so   $q' = q + (6 - q(0.3511 0.9263))(0.3511 0.9263)$   I'm stuck here. Is sudo required for installing VMware Tools? I'm trying to install VMware Tools in Ubuntu 16.04. Should I do this by using sudo? Why? When & How often do 4e Monster powers recharge? How often should I roll power recharge rolls and at which point in the monster's turn do I re-roll them?  I'm trying to find the official definition of the recharge mechanic in the online compendium and I'm not seeing it there. What really goes on in a vacuum? I've been told that a vacuum isn't actually empty space, rather that it consists of antiparticle pairs spontaneously materialising then quickly annihilating, which leads me to a few questions.  Firstly, is this true? And secondly, if so, where do these particles come from?... (do the particles even have to come from anywhere?) Why do the humans become sleepy after meals? How to Screen Sharing / VNC to an iMac without waking the display? I have an iMac mid 2011 at home. When I was not home, I may need to access my mac with Screen Sharing. However the iMac display will turn itself on when I connect via Screen Sharing. The problem is I don't want to scare my family at home (with the elders and kids) as the iMac "turn itself on suddenly".   This is a problem specific for iMac. On MacBooks (Pro, Air, whatever) I can set the brightness to the lowest setting so the screen is black (i.e. the LED light is off). However on an iMac you cannot turn off the LED backlit by setting brightness. The display is still bright and everything is clearly visible even on lowest brightness setting.  Therefore these solution are not working as the display will turn on as soon as you move your mouse or hit any key on the keyboard via Screen Sharing.   Sleep Display (by Ctrl+Shift+Eject) Using the code listed on    Question: Is the a way to keep the iMac display off entirely while you accessing it with Screen Sharing? Two list-boxes, side by side, one with available items, the other with selected items, with arrows in between to move items back and forth. I have an excel spreadsheet with header and survey drill data. Header data contains hole ID, and location coordinates, and the survey data contains related downhole survey with Distance, Azimuth and Dip values.   Since I know the hole location and surface elevation, I would like to be able to convert the survey table to XYZ coordinates as well.  Does anyone has a function / procedure / example?  (VB &amp; ArcObjects)  Header Data:    Survey Data: I wish to show that $\mathbb{Q}(\sqrt2, \sqrt3)$ is not isomorphic to $\mathbb{Q}(\sqrt[4]2)$.    What I did so far was to show that $\mathbb{Q}(\sqrt2,\sqrt3) =\text{span}\{1,\sqrt2,\sqrt3,\sqrt6\}$.  Assuming they are isomorphic, denoting $f$ the isomorphism, then $f(1) = 1$, so $x^2-3$ has a root in $\mathbb{Q}(\sqrt2,\sqrt3)$ so $\sqrt 3\in\mathbb{Q}(\sqrt[4]2)$. ($\sqrt2 \in \mathbb{Q}(\sqrt[4]2)$, $\sqrt[4]2\cdot\sqrt[4]2=\sqrt2)$.   Thus under the assumption, $\mathbb{Q}(\sqrt2, \sqrt3)\subseteq \mathbb{Q}(\sqrt[4]2)$. As a vector spaces of the same dimension over $\mathbb{Q}$, it means that $\mathbb{Q}(\sqrt2, \sqrt3)= \mathbb{Q}(\sqrt[4]2)$.  Now all is left to do it to show a contradiction: $\sqrt[4]2\in\mathbb{Q}(\sqrt2,\sqrt3)$, then $\sqrt[4]2 = a+b\sqrt2+c\sqrt3+d\sqrt6$ so $2=(a+b\sqrt2+c\sqrt3+d\sqrt6)^4$, I believe that opening the expression, I would find out that it can't be an element of $\mathbb{Z}$. However this is a really inelegant way (if it really works), and I wish for a better way to do so.  An other approach: $\mathbb{Q}(\sqrt2,\sqrt3) = \mathbb{Q}(\sqrt2 + \sqrt3)$ by the irreducibility of $x^4-10x^2+1$ over $\mathbb{Q}$ (an some dimension theorem usage). Also, $x^4-10x^2+1$ splits in $\mathbb{Q(\sqrt2, \sqrt3)}$.   Is there a way to show that this polynomial doesn't split over $\mathbb{Q}(\sqrt[2]4)$? with different method then assuming that $\sqrt3\in\mathbb{Q}(\sqrt[4]2)$ and getting a contradiction? Maybe the fact that $\sqrt[4]2$ has complex roots might help? Zip all files in directory? Print lines between (and excluding) two patterns Prove $\sin^2\theta + \cos^2\theta = 1$ How do you prove the following trigonometric identity: $$ \sin^2\theta+\cos^2\theta=1$$  I'm curious to know of the different ways of proving this depending on different characterizations of sine and cosine. Is there a way to transfer more than one Pokemon at a time? Is there a way to transfer more than one Pokemon at a time to the professor?  Or possibly an addon that gives me this ability?  Vendoring all the trash Pokemon for candies individually is really annoying and time consuming. How do I diff two text files in Windows Powershell? I have two text files and want to find the differences between them using Windows Powershell. Is there something similar to the Unix diff tool available? Or is there another other way I haven't considered?  I've tried compare-object, but get this cryptic output:  PS C:\&gt; compare-object one.txt two.txt  InputObject                                                 SideIndicator -----------                                                 ------------- two.txt                                                     =&gt; one.txt                                                     &lt;= How does the Flash breathe while utilizing his super speed? How do the Flashes breathe utilizing their super speed? The air pressure would be extreme. Do they run in a pressurized bubble? Bluetooth from the command line in 12.04? I've been trying to pair up my bluetooth keyboard with my computer after reinstalling from a standard ubuntu 12.04 to a minimal install.  In the minimal install I have no gui, so I've been trying to use the various command line tools available, but I can't figure out how the pairing is supposed to go. Pairing when I had a gui worked flawlessly.  I've asked for help here:   No one has replied but a lot of details of my situation is available there.  How is one supposed to pair bluetooth devices from the command line? Is it feasible to compile Python to machine code?