ESRI Error lookup COM Exceptions
Is there a way to get a good human readable error from a COM error in arcEngine?
How do we know what type of gauge field to add to a theory? I've been watching  and in one lecture, he discusses a very simple gauge theory.  We have a complex scalar field $\phi(x)$ with Lagrangian  $$\mathscr{L} = \partial_\mu \phi^* \partial^\mu \phi - V(\phi^* \phi)$$  and we want to do the gauge transformation $\phi(x) \to e^{i\theta(x)} \phi(x)$.  But the derivative term in the Lagrangian is not invariant if $\theta$ varies from place to place, so we add a new vector field $A_\mu$, and define it to transform like $$A_\mu \to A_\mu + \partial_\mu \theta$$ under the gauge transformation.  Then we change the Lagrangian to use covariant derivatives $D_\mu = \partial_\mu + iA_\mu$ instead of ordinary ones; now when the gauge transform is done all the derivatives of $\theta$ cancel out, and the result is invariant.  My question is: was there any freedom in choosing to add a vector field, with that specific gauge transformation law?  Are there any other ways we could get gauge invariance here—by using a different transformation law, or with a different type of field (say, a scalar, tensor, or spinor) with some other transformation law?  More generally, how can we tell what type of field is needed and what its gauge transformation law should be, to get some particular Lagrangian to be invariant under some particular gauge transformation? Should flagging a question for closure prevent close-voting? Back in April, I flagged a post as "not a real question".  The post was subsequently closed and reopened, then closed again and finally just reopened a 2nd time a short time ago.  I still firmly believe the post is not acceptable for SO, so I went to use my recently acquired close vote privilege and was greeted with the following messsage:    I specifically clicked close and not flag (and figuring I just clicked in error, I tried again and got the same message).  I do understand that, in the new closing system, flagging for closure is treated very much like a close vote (since it throws it to the close vote queue) except no vote is actually recorded.  My issue is why should by flag be counted as a close vote when I never actually voted to close. How do you apply a QgsExpression to a Label ?   I can do it in QGIS with this simple expression  concat('N:' ,round(Value,0),'\n','Yield:' ,round(Value 2,0))  N: 65   Yield: 40  How do I do it in PyQGIS ? I see a getLabelExpression but no setLabelExpression  This works but I want but only for the field name    crap = QgsVectorLayer("D:/data.shp", "data", "ogr")  QgsMapLayerRegistry.instance().addMapLayer(crap)  palyr = QgsPalLayerSettings()  palyr.readFromLayer(crap)  palyr.enabled = True  palyr.fieldName = 'Name'  palyr.placement= QgsPalLayerSettings.OverPoint  palyr.setDataDefinedProperty(QgsPalLayerSettings.Size,True,True,'8','')  palyr.writeToLayer(crap) How to change LCD brightness from command line (or via script)? Multigroup (CCK3) / FlexiField-like solution for compound fields? I've used  in the past to do multiply occurring series of field groups; now, working on a Drupal 7 project, I'm setting up a "Resume" content type and need a way to set up repetitive entries for education/work experience.   IE: for "Education", I need the ability to dynamically add new rows comprised of a combination of dates and places for each institution studied at.  What is the best way to accomplish CCK3 multigroup/FlexiField-like functionality in Drupal 7?  Thanks! I came across a combinatorial proof of the Fermat's Little Theorem which states that    If $p$ is a prime number then the number ($a$$p$-$a$) is a multiple of $p$ for any natural number $a$.  Let me write down the proof.    PROOF  We have pearls of $a$ colours . From these we make necklaces of exactly $p$ pearls .   First,we make a string of pearls . There are $a$$p$ different strings.If we throw away  the $a$ one one -coloured pearls  ($a$$p$-$a$) strings will remain.We connect the ends of each string to get necklaces.We find that two strings that differ only by a cyclic permutation of its pearls result in indistinguishable necklaces.But there are $p$ cyclic permutations of $p$ pearls on a string . Hence the number of distinct necklaces is    [($a$$p$-$a$)/$p$].  Because of this interpretation this is an integer.Thus ($a$$p$-$a$) is a multiple of $p$ for any natural number $a$. [HENCE PROVED]     MY CONFUSIONS    What is the use of the fact that $p$ is a prime in this proof?  If this proof is true then why is this not true for every positve integer $p$? I have several thousand nodes of a particular content type. Using the web interface (example.com/admin/content), I can only delete about 50 at a time. How can I quickly delete them? Do tenses in a time clause never back-shift in reported speech? Do tenses in a time clause never back-shift in reported speech?  For example, does      "I went to Italy when I finished school."    become      She said she had gone to Spain when she finished school.   -or-   She said she had gone to Spain when she had finished school.   and does      "I will go to Italy when I finish school."    become     She said she would go to Italy when she finishes school.   -or-   She said she would go to Italy when she finished school. 'Search on Yammer' link in search center refiners I have a heavily branded site I'm working on and can't find where the "Search on Yammer" link is being populated from. It appears within the search refiner/filter web part in the left column but none of the display templates reference this.   I'd like to be able to customize the link, placement on the page, etc. without resorting to jQuery to move elements around the page.     And the markup coming through looks like this. The refiners themselves come through a series of display templates but the Yammer link is nowhere that I can see in any of them.   &lt;div webpartid="f09e98eb-6dc3-4a9b-8dbf-65d0fbc7b7c3" haspers="false" id="WebPartWPQ4" width="100%" class="ms-WPBody " allowdelete="false" style=""&gt;     &lt;div class="ms-ref-ctrl"&gt;         &lt;div class="ms-ref-refiner"&gt;             &lt;div id="Container"&gt;                 &lt;h2 class="ms-displayInline"&gt;                     &lt;a class="ms-ref-name ms-displayInlineBlock ms-srchnav-link-selected ms-link" href="javascript:void(window.open(                     'https://www.yammer.com/search?trk_event=o365_search&amp;amp;search='+                     encodeURIComponent(Srch.ScriptApplicationManager.get_current().queryGroups.                     Default.dataProvider.get_currentQueryState().k),'_blank'));" title="Open a new tab to search for this on Yammer"&gt;Search on Yammer&lt;/a&gt;                 &lt;/h2&gt;             &lt;/div&gt;         &lt;/div&gt;     &lt;/div&gt; &lt;/div&gt; &lt;div componentid="ctl00_SPWebPartManager1_g_f09e98eb_6dc3_4a9b_8dbf_65d0fbc7b7c3_csr" id="ctl00_SPWebPartManager1_g_f09e98eb_6dc3_4a9b_8dbf_65d0fbc7b7c3_csr"&gt;             ... refiners populated through display templates ... &lt;/div&gt; I need to install more applications - can I use my external HD (samsung T5) and add an additional applications folder? I have loads of space on it and it the speeds are great. Does removing the comma before 'which' etc in a non-restrictive clause change the meaning of the sentence? Why is absolute value  function   not a polynomial?   I need  a clear  answer to this question please,?  Why couldn't we consider absolute value function as a polynomial? Does the derivative of a continuous function goes to zero if the function converges to it? I am writing an article in English, with some pages in Russian.  \documentclass[12pt]{article}  \usepackage[T1,T2A]{fontenc}  \usepackage[utf8]{inputenc}  \usepackage[russian,english]{babel}  \usepackage{newtxmath} \usepackage{newtxtext} \begin{document}  hello \textbf{hello}  \selectlanguage{russian} привет \textbf{привет}  \end{document}   Output:  hello hello привет привет  I am using \selectlanguage{} to switch between languages when needed.  However, I noticed that when I try to use \textbf{} when in Russian language mode, it does not work because of newtxtext, which I am using for math formulas.  Does anyone know how to solve this problem?  Thank you. How to kill The Twins In Terraria In Terraria I often try to defeat spazmatism first, but when he transformed, his flamethrower killed me. What is easiest way to kill The Twins? Beamer - Color of header foreground with AnnArbor theme I use beamer with the theme AnnArbor and colortheme whale.  I tried to use:  \setbeamercolor{section in head/foot}{fg=white, bg=blue}   or  \setbeamercolor{palette tertiary}{fg=white, bg=blue}   But for an unknown reason, the bg works but not the fg... The sections names stay black in the header.    EDIT : the problem comes from the hyperref package.  This code works well :  \documentclass{beamer} \usetheme{AnnArbor} \usecolortheme{whale} \setbeamercolor{frametitle}{fg=white,bg=blue}  \begin{document}     \section{Test 1}     \subsection{Test 1.1}     \begin{frame}         \frametitle{Test}     \end{frame} \end{document}   Whereas this one doesn't works :  \documentclass{beamer} \usetheme{AnnArbor} \usecolortheme{whale} \setbeamercolor{frametitle}{fg=white,bg=blue} \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=black,     urlcolor=blue,     citecolor=gray,     frenchlinks=false,     pdfborder={0 0 0} }  \begin{document}     \section{Test 1}     \subsection{Test 1.1}     \begin{frame}         \frametitle{Test}     \end{frame} \end{document}   And that's pretty normal because of this line :  linkcolor=black, OpenSSL remains vulnerable after update to 14.04 Is there a canonical way to typeset such quantities in equations and inline math?  \documentclass{article} \begin{document} $Re$, $Nu$ are clearly not an option. $\mathit{Re}$, $\mathit{Nu}$ appear ok to me. \end{document} How am I supposed to use nvidia-prime? I have an acer laptop with these GPUs: - GPU0: Intel HD Graphics 4000 (M) (obviously integrated) - GPU1: NVIDIA GeForce GT 710M  I uninstalled all nvidia-drivers because I was experiencing a lot of bugs and I read here and there that they are not supposed to work with Optimus without either bumblebee or nvidia-prime.  As far as I understand, nvidia-prime would allow me to have the NVidia GPU always on. And to choose between that or always off (i.e. always use Intel)  So now I installed nvidia-prime with  sudo apt-get install nvidia-prime   What am I supposed to do now?  I thought nvidia-prime provided a graphical interface which would allow me to choose which graphic card to use, and even to install the needed nvidia drivers.  By typing "nvidia" in the dash, nothing shows up. From a terminal, the only command available starting with "nvidia" is "nvidia-detect" which just prints "none".  So, I installed nvidia-prime, how do I use it? I'm code reviewing a change one of my co-workers just did, and he added a bunch of calls to Date.toMonth(), Date.toYear() and other deprecated Date methods.  All these methods were deprecated in JDK 1.1, but he insists that it's ok to use them because they haven't gone away yet (we're using JDK 1.5) and I'm saying they might go away any day now and he should use Calendar methods.  Has Sun/Oracle actually said when these things are going away, or does @deprecated just mean you lose style points?