I want to prevent a user to fake the GPS coordinate, there is an app that can be run to fake the GPS if the iPhone is jailbroken. so to prevent this issue I want to check if the user is jailbroken or not, if the user uses the jailbroken iPhone, I will force close the app.  how to do that in Swift ? I can't find it in stackoverflow so far
If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this?
Tricks for getting lots of arrows? Any tips or tricks for getting arrows (besides cheating)? Or tricks for finding a skeleton spawn?  I've tried farming chickens and gravel for feathers and flint, but it takes a ridiculously long time. How do people get enough arrows to make using a bow actually feasible? Quadratic Formula in Complex Variables Let $a$, $b$, and $c$ be complex numbers with $a\neq0$. Show that the solutions of $az^2+bz+c=0$ are $z_1,z_2=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$, just as they are in the case when $a$, $b$, and $c$ are real numbers. How to prove that $\lim\limits_{h \to 0} \frac{a^h - 1}{h} = \ln a$ Create hexagonal mesh on 3D Parametric Plot and 3D spheres? Why do light sources appear as stars sometimes? See for example this photo:    From my experience, the longer the exposure the stronger can this effect be observed. Is this correct? Are there any other factors that influence the creation of these stars (is there a better word for it, by the way?) And what exactly does technically happen? A proof for the inequality $\sum_{i=0}^{t-2}{\frac{1}{t+3i}} \leq \frac{1}{2} $ for all $t \geq 2$ I'm struggling with proving the following inequality: $$\sum_{i=0}^{t-2}{\frac{1}{t+3i}} \leq \frac{1}{2}$$  for all $t \geq 2$. I think it is monotonic non-increasing in $t$, which would suffice.  Thanks in advance! Java FileInputStream ObjectInputStream reaches end of file EOF Is Python/ArcPy capable of delimiting strings with commas into different fields, and running a calculation based on those separate columns Using ArcGIS ArcMap 10.6: I have a text field in an attribute table that has comma separated values (example: 12,24, 64, 87,29). For this example, I will name this field VALUES. Please note that VALUES includes data collected from field work so the spacing between commas will be varied. My current workflow is as followed:  Export the ID and VALUES fields in the attribute table into a .csv file using Table to Table in ArcMap 10.6 Open the .csv in Excel and run the 'text to columns' function under the Data ribbon Separate the VALUES field into multiple columns based on commas Run the calculation: Copy Column I values and ID columns into a new .csv file Save and close the new .csv file and join the shapefile to the new .csv file based on ID Export the newly joined shapefile into a new file and delete the duplicate ID field in the new shapefile  I am wondering if there is a way to automate this Python/ArcPy so I can create a custom script tool to do this without leaving the ArcGIS environment. Is there a way to separate values in a text field based on commas into different columns, run the above calculation, and have the values from that calculation entered in a new field named VALUES_CALCULATED? ASP.NET "special" tags What is the official name for the "special" ASP.NET tags like this:  &lt;%# %&gt; &lt;%= %&gt; &lt;%@ %&gt; &lt;%$ %&gt;   I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info.  As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what each one of them does (or point me to a resource)? Collective term for data sizes (bytes, kilobytes, megabytes etc.) As you will probably work out from my profile, I'm a software developer. This is sort of a software development question, but I think this is more suited to English language too.  Feel free to migrate if you think the question does not belong here.  Say I want to refer to the data size, or capacity of something:   A floppy disk can hold 1.44 megabytes of data. My flash drive can hold 16 gigabytes of data. My internet connection can operate at a maximum of 50 gigabits per second I have just managed to compress a file from 1 megabyte to just 200 kilobytes.   How do I collectively refer to these units of data size/capacity? Spice containers purchase  I'm planning on upgrading my spice storage. Reading some advice online (e.g. , and ) I came to the conclusion that spice containers should:   Not be exposed to direct sunlight and high temperatures Be airtight   Which means that either you store it inside of some closed cupboard/wardrobe/room or you have containers which do block light and are in a relatively shady place. And the containers need to be airtight.  Available solutions  I've been browsing for some containers available online in my country and the 2 most sensible options I've seen are these:       The problem  The first one is hermetic (it has some rubber around the lid) but it's clear glass. The other one does not have the rubber, just a regular twist-off lid, but it's amber glass.  It'll be hard for me to find any space inside of cupboards to store all of my spices (I need at least 30), so I'd rather buy amber glass container, which I believe will effectively block the sunlight, even when kept on the counter. But I can't find any hermetic amber-glass containers, only ones with regular lid.  The question  Is that regular twist-off lid enough to keep spices airtight and fresh? Or should I focus on buying a hermetic container (like the one in clear glass). I could then for example paint them black to block the sunlight. Why do we use Hermitian operators in QM? Position, momentum, energy and other observables yield real-valued measurements. The Hilbert-space formalism accounts for this physical fact by associating observables with Hermitian ('self-adjoint') operators. The eigenvalues of the operator are the allowed values of the observable. Since Hermitian operators have a real spectrum, all is well.  However, there are non-Hermitian operators with real eigenvalues, too. Consider the real triangular matrix:  $$ \left( \begin{array}{ccc} 1 &amp; 0 &amp; 0 \\ 8 &amp; 4 &amp; 0 \\ 5 &amp; 9 &amp; 3 \end{array} \right)  $$  Obviously this matrix isn't Hermitian, but it does have real eigenvalues, as can be easily verified.  Why can't this matrix represent an observable in QM? What other properties do Hermitian matrices have, which (for example) triangular matrices lack, that makes them desirable for this purpose? Changing top, bottom, left & right margins on the fly I’m trying to find a way of being able to modify all of the margins of a page whenever I want to and as many times as I want to on a single page in order to be able to put text very easily where I want on a page.   I have thought of using the geometry package and using   \newgeometry{left=6.75cm, right=1cm, top=1cm, bottom=1cm}  %…  \restoregeometry   but unfortunately this only works for whole pages, so I can only change the margins once per page (and then they are valid for the whole page without having the possibility of changing them again).   I found the following script on the internet which enables users to change margins on the fly, just as I want to. The code below works fine and enables me to change the left and right margins of my page as many times as I want to, but unfortunately, it doesn’t give me the option of changing the top and bottom margins.  % placed before \begin{document}  \newenvironment{changemargin}[2]{% \begin{list}{}{% \setlength{\leftmargin}{#1}% \setlength{\rightmargin}{#2}% }% \item[]} {\end{list}}  % And then inside the document, whenever I want to use % the command to change the margins on the current page  \begin{changemargin}{1.9875cm}{-3.7625cm} % this means the left margin increases by 1.9875cm compared % to the default left margin (4.7625cm) (so left margin=6.75cm here) % and the right margin decreases by 3.7625cm (so right margin=1cm)  % ... (text or pictures in new environment)  \end{changemargin}   For this reason, I tried to adapt the code above and came up with the code below:  % placed before \begin{document} \newenvironment{changemargin}[3]{% \begin{list}{}{% \setlength{\leftmargin}{#1}% \setlength{\rightmargin}{#2}% \setlength{\topmargin}{#3}% }% \item[]} {\end{list}}  % And then to use the command: \begin{changemargin}{1.9875cm}{-3.7625cm}{1cm} % ... \end{changemargin}   It compiles and still changes the left and right margins but the top margin remains unchanged. (I haven’t yet tried to change the bottom margin).  Can anyone help me get this code to work completely, and enable me to modify the left, right, top and bottom margins of a page? Thanks. How to install Windows on GPT disk without UEFI BIOS? The latex file coding is not there but the pdf file is there I wrote all my coding in the .tex file. The next day when I opened it the coding is all gone and the pdf file is opening with it and is displayed as an output. How do I bring back my coding? Can I install any iOS version I wish by picking and choosing which firmware to restore? I'm trying to downgrade my iPhone from the current iOS to an older one, as per .  But every time I try, I always receive this error:     The iPhone could not be restored. This device isn't eligible for the requested build.     I have tried many times with and without DFU mode. Any ideas regarding this? I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO? Why is quadratic integer ring defined in that way? Quadratic integer ring $\mathcal{O}$ is defined by \begin{equation}    \mathcal{O}=\begin{cases}       \mathbb{Z}[\sqrt{D}] &amp; \text{if}\ D=2,3\ \pmod 4\\       \mathbb{Z}\left[\frac{1+\sqrt{D}}{2}\right]\  &amp; \text{if}\ D=1\pmod 4    \end{cases} \end{equation} where $D$ is square-free.   I understand $\mathbb{Z}\left[\frac{1+\sqrt{D}}{2}\right]$ is not closed under multiplication if $D=2,3\pmod 4$. But still, isn't it more natural to define $\mathcal{O}=\mathbb{Z}[\sqrt{D}]$ for all square-free $D$? (in that case, it really seems like 'quadratic integer') I wonder what is the motivation of this definition. Someone told me that the English language is special (compared to German, at least) in the way that every noun could be used as a verb. I think this phenomenon is called supine. Is this correct?  Examples:   house → to house well → to well phone → to phone table → to table lamp → to lamp   At first it seemed to me that this would work with all nouns. But then I thought of the following nouns, and I think they can't be used as a verb, am I right?   person →(?) to person human →(?) to human baker →(?) to baker computer →(?) to computer example →(?) to example   It seems that nouns describing people (person, human, baker) are exceptions? But it works for "author" ("to author"). Hmm. "Computer" seems smiliar to a person's job to me (could be a human instead of a machine that computes).  But what about "example"? I think "to example (something/someone)" is not possible, is it? What would a native speaker understand/think if someone says:      He examples.      I want to example it/him.   Which are the nouns that can't be used as a verb? How can I minimise the time to get a new UK passport?