I’ve been trying to update Xcode and it seems to be stuck after the download. After sitting and waiting for a while, it seems to have restarted the entire process of downloading and updating again. I’ve currently been staring at it stuck the second time around for about 8 minutes. I’ve included a screenshot of what it looks like alongside the console.  Any tips?
I'm unable to upgrade Xcode 11GM to 11.1 for some time on my Mid 2014 MacBook Pro running macOS Catalina. I've installed Xcode from Mac AppStore ages ago (IIRC circa 2014), and upgraded step by step since then. Currently, I'm experiencing the following loop:   AppStore reports that I have an update. I open AppStore, open updates, click "Update" on Xcode. Mac Downloads ~2.5GB first. Installs that patch. Continues to get the full package (~7.6GB). It starts to install. After some churning and install, it reports "Cannot download Xcode now, please try again later."   I have more than enough space on the disk, and nothing is modified in Xcode or in the OS (no homebrew or something similar).  Did anyone experience something similar? Are there solutions to this?
Is there a test for the different styles within maths mode?  What I really want is to be able to save the current style to reinvoke it later on, but a \if along the lines of \ifmmode would work just as well.  In the specific example, I want to measure how big something will be when displayed in maths mode, so I do:  \settoheight{\mathheight}{some bit of maths}   except that it complains because the some bit of maths gets put in a box and measured, and the box doesn't know that it's maths.  So instead I put:  \settoheight{\mathheight}{\(some bit of maths\)}   except that then I get the wrong answer if this is used in displayed maths.  So ideally, I want:  \ifdisplaystyle  \let\currentstyle\displaystyle \else  \iftextstyle   \let\currentstyle\textstyle  ...  \fi \fi \settoheight{\mathheight}{\(\currentstyle some bit of maths\)}   and then I'll be happy.  Is there such a test?    Okay, so \mathchoice is clearly the way to go (thanks Martin!), but its behaviour is a little odd and since I want to use it to define a macro depending on which mode I'm in, this oddity is quite important.  Here's the code:  \newcommand{\mathtest}{% \gdef\name{a}% \mathchoice{% \name \gdef\name{b}% }{% \name \gdef\name{c}% }{% \name \gdef\name{d}% }{% \name \gdef\name{e}% }% \name}  \[ \mathtest \]   If \mathchoice behaved like \if, this ought to print ab.  But it prints ae.  All the options to \mathchoice get processed (which makes me wonder a bit how it works, but that's by-the-by).  So, is there an obvious way to make \mathchoice behave a little more like \if? I have the formula $x! + y! = z!$ and I'm looking for positive integers that make it true. Upon  inspection it seems that x = y = 1 and z = 2 is the only solution. The problem is how to show it.   From the definition of the factorial function we know $x! = x(x-1)(x-2)...(2)(1)$  So we can do something like this:  $$ [x(x-1)(x-2)...(2)(1)] + [y(y-1)(y-2)...(2)(1)] = [z(z-1)(z-2)...(2)(1)]$$   we can then factor all of the common terms out on the LHS.  $$ [...(2)(1)][x(x-1)(x-2)... + y(y-1)(y-2)...] = [z(z-1)(z-2)...(2)(1)]$$ and divide the common terms out of the right hand side  $$[x(x-1)(x-2)...] + [y(y-1)(y-2)...] = [z(z-1)(z-2)...]$$  I'm stuck on how to proceed and how to make a clearer argument that there is only the one solution (if indeed there is only the one solution).   If anybody can provide a hint as to how to proceed I would appreciate it. Quadratic Formula in Complex Variables If we fail to reject the null hypothesis in a large study, isn't it evidence for the null? When did 5 foot squares become standard in D&D? Do we have $\lim_{h\to 0^+}\int_0^\infty|f(t+h)-f(t)|dt=0$? Let $f:\mathbb{R^+}\to\mathbb{R}$ be an integrable function ($f\in L^1(\mathbb{R}^+,\mathbb{R})$). Do we have $$\lim_{h\to 0^+}\int_0^\infty|f(t+h)-f(t)|dt=0$$ ? How can we prove it ? I keep hearing a lot about functors in C++. Can someone give me an overview as to what they are and in what cases they would be useful? Forbid links to open new tabs in Google Chrome Similar Matrices and Linear Transformations Do the Faceless Men take more than just a face? Can we re-request features that were declined a sufficient while ago? It may be something that will happen to the person who is having the feeling but it may also be to several persons, as might occur with a highly destructive earthquake, for instance.   The word or phrase would be used in the following sentence:      “I’m no spiritualist but I have a feeling of ___. I hope it’s just a feeling."   EDIT - The phrase I'm looking for conveys a much stronger feeling than "I have a bad hunch". It is about something catastrophic which the person feels is "going to happen in a few minutes". I am having an error compiling the following code with xelatex and lualatex:  ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5)  Output file removed.  \documentclass{article}  \usepackage{xunicode} \usepackage{fontspec}  \setmainfont[Mapping=tex-text,Ligatures={Common}, Numbers={OldStyle}]{IM FELL English PRO} \begin{document}  Buongiorno a tutti. Trallallà.  \end{document}   The error disappears when I omit the accented à. It also doesn't happen when I use other fonts.  Could you suggest any workaround?  Thank you, A Travelling to Italy without my spouse who is a UK citizen Am I being charged taxes on my grocery purchases at Walmart? Today, I only bought groceries at Walmart and noticed that there is no tax on groceries in California (Google tells me that this is perhaps true for whole of the US?)  So far I have always paid tax at Walmart for my grocery purchases, but that also included items like crackers, shampoo etc  Did Walmart charge me then only for the items that were not groceries, or if your cart has groceries + non-grocery items, you get charged tax on all of them?  Or is this a policy that varies by store, or cashiers' knowledge/discretion, etc?  Would people recommend for me to break down a single mixed purchase into two: one only having groceries and the other with the rest, or is this being paranoid?  My grocery purchases, every two weeks, amount to around $100+.  I pay 8.25% tax, so that is enough to get me free gas if I can figure this out! I need to make this equation in LateX but I get some errors when i try to do that.    Can you help me please?? Run command on another(new) terminal window Infinite partition of $\mathbb N$ by infinite subsets Smoothing polygons in contour map? Here is a contour map for which all the polygons of levels are available.  Let ask how to smooth the polygons keeping all vertices preserved in their exact locations?    Indeed the contour is made on top of a grid data, you may suggest then to smooth the grid data and hence the resulting contour will be smoother. Note that this is not working as my desire since the smoothing function such as Gaussian filter will remove small packs of data and will change the range of the third variable e.g., the height which are not allowed in my application.    Actually I'm looking for a piece of code (preferably in Python) which can do the smoothing of 2D polygons (any type: convex, concave, self-intersecting etc) reasonably painless (forget pages of codes) and accurate.   FYI, there is  that does this perfectly, but using third party commercial applications is not my choice for this question.        1)    Scipy.interpolate:        As you see the resulting splines (red) are not satisfactory!  2)    Here is the result using the code given in . It is not working well!      3)    To me the best solution should be something like the following figure in which a square is being smoothed gradually by changing only one value. I hope for similar concept for smoothing any form of polygons.       Satisfying the condition that spline passes the points:     4)    Here is my implementation of "whuber's idea" line by line in Python on his data. There are possibly some bugs since the results are not good.         K=2 is a disaster and so for k>=4.   5)    I removed one point in the problematic location and the resulting spline is now identical to whuber's. But it is still a question that why the method does not work for all cases?        6)    A good smoothing for whuber's data can be as follows (drawn by vector graphics software) in which an extra point has been smoothly added (compare with update   4):      7)    See the result from Python version of whuber's code for some iconic shapes:     Note that the method seems doesn't work for polylines. For the corner polyline (contour) green is what I want but got red. This needs to be addressed since contour maps are always polylines although closed polylines can be treated as polygons as in my examples. Also not that the problem emerged in update 4 has not been addressed yet.  8) [my last]    Here is the final solution (not perfect!):        Remember that you will have to do something about the area pointed by stars.  There is perhaps a bug in my code or the proposed method needs further development to consider all situations and to provide desired outputs. I have 2 tables. One (domains) has domain ids, and domain names (dom_id, dom_url).  the other contains actual data, 2 of which columns require a TO and FROM domain names. So I have 2 columns rev_dom_from and rev_dom_for, both of which store the domain name id, from the domains table.  Simple.  Now I need to actually display both domain names on the webpage. I know how to display one or the other, via the LEFT JOIN domains ON reviews.rev_dom_for = domains.dom_url query, and then you echo out the dom_url, which would echo out the domain name in the rev_dom_for column.  But how would I make it echo out the 2nd domain name, in the dom_rev_from column?