how to check isinstance of iterable in python?
In Python, how do I determine if an object is iterable?
Direction arrows on a circle I would like to plot circle (or another curve) with positive direction (and show it wit arrows).  This plots the circle  \documentclass{article} \usepackage{tikz} \RequirePackage{pgfplots} \usetikzlibrary{shadows} \usetikzlibrary{shapes} \usetikzlibrary{decorations} \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} \begin{document} \begin{tikzpicture}     \begin{axis}[             xmin=-1.5,xmax=2.5,ymin=-1.5,ymax=1.5,             axis lines=center,             ticks=none,             unit vector ratio*=1 1 1,            ]                   \addplot [very thick, smooth, domain=(0:2*pi)] ({1.+cos(deg(x))},{sin(deg(x))});        \addplot[only marks,mark=*] coordinates{(1,0)};         \end{axis} \end{tikzpicture} \end{document}   And I want to add arrows like that    Would you advise me how to add such arrows? Formula for completing the square? My math teacher said that this was the formula for completing the square.  Original function: $$ax^2 + bx + c$$ Completed square: $$a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c$$  However, using this formula I'm not getting the same answers that I would get just by determining the stuff myself.  Is this correct? Can't update because the word prox* is blocked If a character who was under the effect of a growth potion (double their height and eight times their weight) and weighed 2,400 lbs. was able to use Dimension Door to teleport 400 feet or more into the air, directly above a Huge-sized monster, and fell on it, how much damage would the falling creature - and the monster - take?  I would assume both would take the 20d6 max for the falling over 200 feet, but is there a estimation on additional damage for the falling creature's size?  According to the splat calculator, at 500 feet you'd be falling at 196 km/hr, and it would expend 1.6 million joules of energy, the equivalent of over 3,000 mid-sized cars hitting an object at 60 km/hr.  A 2,400-lb. barbarian falling 500 feet is like dropping a mid-sized Toyota Corolla off a 50 story building onto a monster - it should do some damage. Closed unit disk homeomorphic to $\mathbb{R}^2$? I've already shown the existence of a homeomorphism between the open unit disc and $\mathbb{R}^2$ and now I'm trying to work out whether the closed unit disc is homeomorphic to $\mathbb{R}^2$ or not. Clearly the only real difference is the fact it includes the points actually on the circle, but because the continuous, invertible, bijective map I defined for the open disc was $\dfrac{x}{1-|x|}$ this clearly is not defined for the points on the line.   Intuitively I'm thinking it's not possible to form a homeomorphism with the closed disk precisely because of these points on the circle but can't really form a decent argument. I was thinking along the lines of showing that the non-open, closed subset $\bar{D}(0,1) \backslash D(0,1)$ (which is just the set of points on the actual circle i.e the boundary/frontier of the closed disk) can't possibly bijectively map to a closed subset of $\mathbb{R}^2$ - which clearly would have to be the case in a homeomorphism.   Any advice would be greatly appreciated. What is the difference between ubuntu-18.04-server and ubuntu-18.04-live-server? On the  there is a download link for ubuntu-18.04-live-server-amd64.iso, and on the  there is a download link for ubuntu-18.04-server-amd64.iso. Before 18.04, there is only a server version. What is the difference between these 2 images? Is the subset $[0, \sqrt2] ∩\mathbb{Q} ⊂ \mathbb{Q}$ closed, bounded, compact? Letting $\mathbb{Q}$ be equipped with the Euclidean metric.  What I can work out is that it is bounded as its contained in the closed ball of radius ${\sqrt2}/{2}$ centred at ${\sqrt2}/{2} $.  Its not compact as it can be expressed as union of the two disjoint open sets $[0,{\sqrt2}/{2}) $and$ ({\sqrt2}/{2}, \sqrt2)$ (though I'm not sure if this makes it not compact in $\mathbb{Q}$ or just $\mathbb{R}$).  And its not closed as the sequence of truncations of $\sqrt2$ in $\mathbb{Q}$ converges to $\sqrt2$ How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler? I have 2 graphics cards (Tesla k10, K40) in my supermicro SuperServer (7047GR-TPRF). I installed Ubuntu Server 14.04, but when I install cuda or Nvidia graphics driver (version 311 or 340), my Ubuntu desktop hangs on login. I have two internet connection from two different ISP. ADSL on eth0 and 4G on wlan0. Is there any way that if one ISP fails, the other take over automatically without a physical router and by Host OS (Ubuntu 18.04)? Sometimes we read books rather quickly and don't give them much (or any) thought, so the action 'reading' does not necessarily imply that we have given enough thoughts to any book we read.   Is there a word that describes reading a book with great care; usually but necessarily slowly over a long period of time. Proof that if continuous function on $[0, 2]$ and $f(0) = f(2)$, then for some $x: f(x) = f(x - 1)$ Should I flag obviously wrong answers as NAA? Slit screen and wave-particle duality In a double-slit experiment, interference patterns are shown when light passes through the slits and illuminate the screen. So the question is, if one shoots a single photon, does the screen show interference pattern? Or does the screen show only one location that the single photon particle is at? right now   I have setup /etc/fstab like this:  //192.168.5.167/H /mnt/ssd cifs credentials=/root/.smbreds,noauto,x- systemd.automount 0 0   I want to set it up like first network should be connected and then fstab mount should get mounted. How to store credit card info on iphone? Troubleshooting why Powerbank Doesn't Charge Cell Phone I have powerbank that provides 5v (presumably regulated) power, as typical of most usb interface powerbanks. I have been trying out my powerbank with different phones. It works on all except one. I have tried it with various USB cables, making sure I didn't overlook anything foolish. Then, I looked at the AC adapter of the phone that it didn't seem to be compatible with. The adapter read: 5.4v DC output. The device's official website or manual doesn't tell me what the input voltage should be. So I have the following questions   Is the fact that the device's AC adapter creates a DC 5.4v output enough to assume that, this is the correct voltage for my cell phone? If 5.4v is the input voltage, then when I attempt to power it with a 5v power bank, am I hurting it? Thus far, it just seems to be non-responsive when I try this. It seems another explanation is polarity mismatch. I'm aware that laptops have a polarity correction feature, which could explain why I can charge this phone via my laptop. Is there any other way to tell if polarity is an issue, given that I don't have access to detailed product information (unless the official website is updated, or something)   So that's the gist of it, I'm not sure why my powerbank isn't charging my phone. And I'm having difficulty troubleshooting the underlying problem by myself. Any tips big or small will be appreciated. How to make the term "page" show in the Glossary list? Clearly if $\lambda$ is an eigenvalue of $A$ then $p(\lambda)$ is an eigenvalue of $p(A)$ where $p$ is a polynomial. And there are cases where $A$ may have eigenvalues other than these.   Is there a general rule for finding all eigenvalues of $p(A)$? Does it depend on the field from which the elements of $A$ are taken? Are their any partial solutions to this problem? I am struggling with this question from Halmos's text, please ignore the imperative language.  "Suppose that $L, M$  and $N$ are subspaces of a vector space. Show that the equation    $$L \cap (M + N) = (L \cap M) + (L \cap N)$$   is not necessarily true.  Since each of these subspaces has origin in them, clearly there intersections could not be empty. I wasn't able to formulate an example where this result did n't hold. Any help would be highly appreciated.