How To Check if in Edit Session using Python
Checking via ArcPy if ArcMap is in edit session?
Crash course on algebraic geometry with view to applications in physics Could you please recommend any good texts on algebraic geometry (just over the complex numbers rather than arbitrary fields) and on complex geometry including Kahler manifolds that could serve as an informal introduction to the subject for a theoretical physicist (having in mind the applications in physics, e.g. in the string theory)?   What I want for a moment is to get some informal picture of the subject rather than being dug up into the gory details of the proofs and lost in higher and higher layers of abstraction of commutative algebra and category theory. The texts I have found so far are all rather dry and almost completely lack this informal streak, and all of them are geared towards pure mathematicians, so if there exists something like "Algebraic geometry for physicists" and "Kahler manifolds for physicists" (of course, they would probably have different titles :)), I would greatly appreciate the relevant references. Lazy evaluation in C++ C++ does not have native support for lazy evaluation (as Haskell does).  I'm wondering if it is possible to implement lazy evaluation in C++ in a reasonable manner. If yes, how would you do it?  EDIT: I like Konrad Rudolph's answer.  I'm wondering if it's possible to implement it in a more generic fashion, for example by using a parametrized class lazy that essentially works for T the way matrix_add works for matrix.  Any operation on T would return lazy instead. The only problem is to store the arguments and operation code inside lazy itself. Can anyone see how to improve this? Prove that $a^3+b^3+c^3 \geq a^2b+b^2c+c^2a$ Let $a,b,c$ be positive real numbers. Prove that $a^3+b^3+c^3\geq a^2b+b^2c+c^2a$.   My (strange) proof:  $$ \begin{align*} a^3+b^3+c^3 &amp;\geq a^2b+b^2c+c^2a\\ \sum\limits_{a,b,c} a^3 &amp;\geq \sum\limits_{a,b,c} a^2b\\ \sum\limits_{a,b,c} a^2 &amp;\geq \sum\limits_{a,b,c} ab\\ a^2+b^2+c^2 &amp;\geq ab+bc+ca\\ 2a^2+2b^2+2c^2-2ab-2bc-2ca &amp;\geq 0\\ \left( a-b \right)^2 + \left( b-c \right)^2 + \left( c-a \right)^2 &amp;\geq 0 \end{align*} $$  Which is obviously true.    However, this is not a valid proof, is it? Because I could just as well have divided by $a^2$ rather than $a$:  $$ \begin{align*} \sum\limits_{a,b,c} a^3 &amp;\geq \sum\limits_{a,b,c} a^2b\\ \sum\limits_{a,b,c} a &amp;\geq \sum\limits_{a,b,c} b\\ a+b+c &amp;\geq a+b+c \end{align*} $$  Which is true, but it would imply that equality always holds, which is obviously false. So why can't I just divide in a cycling sum?  Edit: Please don't help me with the original inequality, I'll figure it out. I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:  System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)** at x.Foo.FooGO() at x.Foo.Foo2(String groupName_) in Foo.cs:line 123 at x.Foo.UnitTests.FooTests.TestFoo() in FooTests.cs:line 98** System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.203, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  I look in my references, and I only have a reference to Utility version 1.2.0.203 (the other one is old). Any suggestions on how I figure out what is trying to reference this old version of this DLL file? Besides, I don't think I even have this old assembly on my hard drive. Is there any tool to search for this old versioned assembly? Why do I only have 30V going to my light fixture Consider a rocket in deep space with no external forces. Using the formula for linear kinetic energy $$\text{KE} = mv^2/2$$ we find that adding $100\ \text{m/s}$ while initially travelling at $1000\ \text{m/s}$ will add a great deal more energy to the ship than adding $100 \ \text{m/s}$ while initially at rest: $$(1100^2 - 1000^2) \frac{m}{2} \gg (100^2) \frac{m}{2}.$$ In both cases, the $\Delta v$ is the same, and is dependent on the mass of fuel used, hence the same mass and number of molecules is used in the combustion process to obtain this $\Delta v$. So I'd wager the same quantity of chemical energy is converted to kinetic energy, yet I'm left with this seemingly unexplained $200,000\ \text{J/kg}$ more energy, and I'm clueless as to where it could have come from. There seems to be a preference for to have the    18 mm - 55 mm 55 mm - 250 mm   lenses, but no mention of why they're better than a single 18-200mm. Could someone please explain why the two separate are better than the one combined, and if anyone has quantified this difference?  (I'm curious about Canon in particular.) This inequality $a+b^2+c^3+d^4\ge \frac{1}{a}+\frac{1}{b^2}+\frac{1}{c^3}+\frac{1}{d^4}$ let $0&lt;a\le b\le c\le d$, and such $abcd=1$,show that   $$a+b^2+c^3+d^4\ge \dfrac{1}{a}+\dfrac{1}{b^2}+\dfrac{1}{c^3}+\dfrac{1}{d^4}$$   it seems harder than JSF convertDateTime renders the previous day According with Mumford the answer is yes, but there are some obscure points in the proof.  We know that there exists a very ample line bundle on $A$ since every abelian variety is projective. Hence, via some corollaries of the Theorem of the Cube, we get an ample line bundle whose restriction to the kernel of $n_A$ is both the trivial bundle and very ample. This should imply that the dimension of $\ker n_A$ is $0$.  Furthermore, Mumford says that the fact that the dimension of the kernel is $0$ implies the surjectivity of $n_A$.  Is anybody able to clarify these two points to me?  Thanks in advance! I use youtube-dl to download videos for watching later offline. Usually, it works fine. However, due to frequent changes on the video sites, it sometimes requires a quick update. It wasn't a problem before on 13.04 but after upgrading to 13.10, I get  # youtube-dl -U It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.   I tried updating it via apt-get but there is no new package. So the app's update mechanism has been disabled and the maintainers aren't keeping up, what is the solution? How do I update it?  And why was it changed at all? It was updating a package manager version just fine in raring.   I'm already running into compatibility problems.   $ youtube-dl "http://vimeo.com/55784152" [vimeo] 55784152: Downloading webpage [vimeo] 55784152: Extracting information ERROR: Unable to extract info section; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.   QUICK UPDATE:  As requested,  # type youtube-dl youtube-dl is hashed (/usr/bin/youtube-dl)  # apt-cache policy youtube-dl youtube-dl:   Installed: 2013.08.29-1   Candidate: 2013.08.29-1   Version table:  *** 2013.08.29-1 0         500 http://pl.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages         100 /var/lib/dpkg/status Which browsers are officially supported, and what else do I need? Which browsers are officially supported by Stack Exchange?  Also, what else is needed in order to use every feature of the site? Low wifi signal in 14.04 LTS How to add an image to a JPanel? I have a  to which I'd like to add JPEG and PNG images that I generate on the fly.  All the examples I've seen so far in the , specially in the  use ImageIcons.  I'm generating these images as byte arrays, and they are usually larger than the common icon they use in the examples, at 640x480.   Is there any (performance or other) problem in using the ImageIcon class to display an image that size in a JPanel? What's the usual way of doing it? How to add an image to a JPanel without using the ImageIcon class?   Edit: A more careful examination of the tutorials and the API shows that you cannot add an ImageIcon directly to a JPanel. Instead, they achieve the same effect by setting the image as an icon of a JLabel. This just doesn't feel right... Where can I find information about ubuntu compatible or certified hardware/PC models? The set of convergent points of a sequence of continuous functions is Borel Suppose that $f_n$ are continuous.  Prove that $E=\{x\in \mathbb{R}:f_n(x)\text{ is convergent}\}$ is Borel.   My first instinct is to take balls around $\lim_{n\to\infty}f_n(x)$, for each $x$ in $E$, and then show that there has to be some ball small enough so that everything inside that ball is a member of $E$. But this would imply not only that $E$ is Borel, but moreover that it is open, so I don't think that can be right.  Can someone show me how to do this? How do I know if food left at room temperature is still safe to eat? Grid System in LaTeX Safely moving and creating new tempdb files Two things I'd like to know:   how do you safely move tempdb with minimal downtime? how many tempdb files do you need?   Is it 1 file per core? So quad-core = 4 tempdb files, creating three new ones? I am struggling to find such languages $L_{1}$, $L_{2}$, and $L_{3}$ such that  $$ L_{1} \subseteq L_{2} \subseteq L_{3} $$ where $L_{1}, L_{3} \notin  \mathbb{R}$ and $L_{2} \in  \mathbb{R}$.  I know they exist, I need help finding them.