I'm working with ShareLatex and I'm uploading .pdf image, so it takes a long time to compile because it is a large document. I found it is possible to automatic convert .pdf images to .png using:    \usepackage{graphicx}   \usepackage{epstopdf}   \epstopdfDeclareGraphicsRule{.pdf}{png}{.png}{convert #1 \OutputFile}   \DeclareGraphicsExtensions{.png,.pdf}   which will speed up the compiler but it seems that I need to call pdflatex with the --shell-escape option. The question is, how is it done in Sharelatex?  Here is the info of the webpage of   Thanks
Is it possible and if so how can you pass flags to the ShareLaTeX compiler which one would have passed as parameters to the LaTeX compiler?  I am using the minted package and need to pass the -shell-escape flag.
Is it possible to batch import Wavefront .obj to blender? I'm working on 2.69. If I select multiple .obj files, only one gets imported. Also if I hit A on file selection window to select all files (.obj and .mtl) I get an error, nothing gets imported. I have to import several hundreds of .obj into the blender file, is this possible? Is there any way to do n-level nested loops in Java? In other words, can I do something like  for() {     for {        for {        }     } }   Except N times? In other words, when the method creating the loops is called, it is given some parameter N, and the method would then create N of these loops nested one in another?  Of course, the idea is that there should be an "easy" or "the usual" way of doing it. I already have an idea for a very complicated one. I want to write a function in Python that returns different fixed values based on the value of an input index.    In other languages I would use a switch or case statement, but Python does not appear to have a switch statement.  What are the recommended Python solutions in this scenario? What is the most ruby-ish way of accessing nested hash values at arbitrary depths? Some prestigious universities like Caltech, Stanford, MIT and Berkeley never disclose their information regarding their cut off major and cumulative GPA for M.Sc and PhD programs in engineering. I also aware of the fact that graduate schools will look at the whole package and make their decision based on sets of factors like letter of recommendation, statement of purpose as well as GPA.   However, since application fee is pretty high it is not worth it to apply to schools that you know you have a slight chance of getting into it so, I would like to know what would be the acceptable GPA (Both major and Cumulative) for applicants to be competitive for top five schools in the world? What happens to the human inside the titan when the titan dies? Just to be clear I'm NOT talking about those who where swallowed.       We know that titans used to be humans and then somehow they transformed into titans.   When they kill a titan it completely Vaporizes and nothing is left. So what happens to the human inside them?     Could it be like when Eren was testing his limits and each time he fused more with the titan body? If so, why could Ymir live in titan form for over 60 years and still transform back into human? Simulating group_concat MySQL function in Microsoft SQL Server 2005? Prove that $$\cos(\pi/11)+\cos(3\pi/11)+\cos(5\pi/11)+\cos(7\pi/11)+\cos(9\pi/11)=1/2$$ using Euler's formula.  Everything I tried has failed so far.  Here is one thing I tried, but obviously didn't work. $$\Re e \{e^{\frac{\pi}{11}i}(1+e^{\frac{2\pi}{11}i}+e^{\frac{4\pi}{11}i}+e^{\frac{6\pi}{11}i}+e^{\frac{8\pi}{11}i}) \}=\frac{1}{2}$$ $$\Re e \{e^{\frac{\pi}{11}i}(1+\sqrt[11]{e^{2\pi i}}+\sqrt[11]{e^{4\pi i}}+\sqrt[11]{e^{6\pi i}}+\sqrt[11]{e^{8\pi i}}) \}=\frac{1}{2}$$ $$\Re e \{e^{\frac{\pi}{11}i}(1+\sqrt[11]{1}+\sqrt[11]{1}+\sqrt[11]{1}+\sqrt[11]{1}) \}=\frac{1}{2}$$ $$\Re e \{5e^{\frac{\pi}{11}i} \}=\frac{1}{2}$$ $$5\cos(\frac{\pi}{11})=\frac{1}{2}$$ Which isn't true :D  Thanks in advance How to manually mount a partition? There are many questions on automatically mounting or problems encountered during mounting that I've read here. But none on how to manually mount a partition. Additional horizontal space when the last line of an environment is full I have created an environment env which just adds a \medskip and some text (say "Blablabla") after the text inside \begin{env} ... \end{env}. The problem is that if the last line is full, then I get an additional horizontal space between the text and "Blablabla".  Here is an MWE:  \documentclass{article} \newenvironment{env}{ ENVIRONMENT:\par }{ \medskip \par\noindent Blablabla }  \begin{document}  \section*{First case: the last line is not full}  \begin{env} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla malesuada porta tortor non vestibulum. Vivamus vel tincidunt purus. Curabitur quam arcu, suscipit sed diam sed, ornare efficitur felis. Duis at arcu iaculis, viverra ligula sit amet, hendrerit eros. Proin finibus venenatis sollicitudin. Nunc ullamcorper sem ut lacinia posuere. Integer pulvinar nulla lorem, ut pulvinar ipsum egestas at. Duis quam ipsum, posuere ac pulvinar vitae, auctor non leo. \end{env}  \section*{Seconde case: the last line is full}  \begin{env} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque suscipit vitae neque eu gravida. Quisque et enim quam. Integer elementum diam a ex laoreet, ac egestas lacus volutpat. Nunc ullamcorper non urna tincidunt ultrices. Etiam eu ultricies diam. Proin mollis, nunc sit amet volutpat varius, ipsum tellus bibendum nulla, in eleifend lacus felis pellentesque nisl. Phasellus laoreet, libero quis auctor congue, nulla nulla aliquam metus, in hendrerit arcu justo quis tortor. Nunc nec nisi euismod, consectetur tellus nec, suscipit libero.  \end{env}  \end{document} Better extensible arrows I don't understand how quantum mechanics (and therefore also quantum computers) can work  given that while we work with quantum states, particles that this quantum state consist of cannot be observed, which is the most fundamental requirement.  If I am not mistaken, by "observed" we mean interaction with any other particle (photon, gluon, electron or whatever else). So my very important questions:   Aren't the particles this quantum state consists of interacting with each other? Why doesn't that cause the state to collapse? Aren't all particles in the universe interacting with Higgs field and gravitons etc? Why doesn't that cause every quantum state to collapse?   I feel there is something very fundamental in quantum mechanics that I am not aware of, hence I would be very pleased to have these questions answered. undefined reference to `__sync_val_compare_and_swap_4' error at compilation, using gcc 4.1.1 and 4.2.0 for Sparc v8 target Do different databases use different name quote? For example, mysql quote table name using   SELECT * FROM `table_name`;   notice the `   Does other database ever use different char to quote their table name Transformer, how the primary current is adjusted to be equal to the secondary load (without considering magnetizing current)? I am happy to always not understand how does a transformer works ... One answer give me 10 questions ... (So I suggest you to not answer to this question, if you do not want to have more questions :D)  Here is the circuit :     So I put the "coupling" factor to 1, in order to have no leakage inductance and I set the value of the inductors very high in order to have a very low magnetizing current. So the primary current is approximately equal to the secondary current. My question is the following : How the primary current can reach an equilibrium to be equal to the secondary load current ? I will not accept answer which tells Pout is equal to ... So Pin is equal to Pout... There is something happenning into the transformer ...   Thank you very much and have a nice day ! I have tried without success to plot the curve of the chi-squared distribution. Is there a generous soul who can come to my rescue. Problem:Let $k$ be an odd positive integer. Prove that $(1+2+3...+n)|(1^k+2^k+3^k+...+n^k)$ for all positive integers $n$.  My Attempt: Proof (By Induction on $k$): Let $P(k)$ be the proposition that $(1+2+3...+n)|(1^k+2^k+3^k+...+n^k)$ for all positive integers $n$ when $k$ is odd. Then $P(1)$ and $P(3)$ are trivially true. So for $k\geq 5$, we assume that $P(k)$ holds. We would like to show that $P(k+2)$ also holds. In order to do that consider the following sums  $$1^{2}(1^k+2^k+3^k+...+n^k)=1^{k+2}+2^k+3^k+...+n^k$$ $$2^{2}(1^k+2^k+3^k+...+n^k)=2^2*1^k+2^{k+2}+2^2*3^k+...+2^2*n^k$$ $$..$$ $$n^2(1^k+2^k+3^k+...+n^k)=n^2*1^k+n^2*2^k+n^2*3^k+...+n^{k+2}$$ Note that $$1^2(1^k+2^k+3^k+...+n^k)+2^2(1^k+2^k+3^k+...+n^k)+...+n^2(1^k+2^k+3^k+...+n^k)\equiv 0\pmod {\frac{n(n+1)}{2}}$$  Therefore, if we denote $\sum_{i=1}^{n}i^2=s$, then    $(t)(1^k+2^k+3^k+...+n^k)-t+\sum_{i=1}^{n}i^{k+2}\equiv 0\pmod {\frac{n(n+1)}{2}}$ which implies that $P(k+2)$ holds. Hence by PMI we are done.  Now I am a bit hesitant in convincing myself whether this proof is correct or not. This is because I have never seen induction performed in this manner. Any reasons as to why this argument falls would be much appreciated. SPSite.Exists returning true for a just deleted site collection Short story - I have a process that creates some sitecollection, so to test it I keep deleting and recreating the same site over and over. The process includes a check with the istruction SPSite.Exits, done to check if the sitecollection is present or should be created.  Sometime, soon after I delete the site collection, SPSite.Exists will report it as still available. Is this a cache related problem? Can it hurt to put my GRE score on my resume? If my score is good and if I'm applying for an MS program in Europe, can it give me any kind of edge? The university I'm applying to requires GRE scores for certain programs but not the one I'm applying for. And if it won't be advantageous, can it hurt my prospects in anyway? XML attribute vs XML element At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.   The sample I came up with is essentially something like:  &lt;INVENTORY&gt;    &lt;ITEM serialNumber="something" location="something" barcode="something"&gt;       &lt;TYPE modelNumber="something" vendor="something"/&gt;     &lt;/ITEM&gt; &lt;/INVENTORY&gt;   The other team said that this was not industry standard and that attributes should only be used for meta data. They suggested:  &lt;INVENTORY&gt;    &lt;ITEM&gt;       &lt;SERIALNUMBER&gt;something&lt;/SERIALNUMBER&gt;       &lt;LOCATION&gt;something&lt;/LOCATION&gt;       &lt;BARCODE&gt;something&lt;/BARCODE&gt;       &lt;TYPE&gt;          &lt;MODELNUMBER&gt;something&lt;/MODELNUMBER&gt;          &lt;VENDOR&gt;something&lt;/VENDOR&gt;       &lt;/TYPE&gt;    &lt;/ITEM&gt; &lt;/INVENTORY&gt;   The reason I suggested the first is that the size of the file created is much smaller. There will be roughly 80000 items that will be in the file during transfer. Their suggestion in reality turns out to be three times larger than the one I suggested. I searched for the mysterious "Industry Standard" that was mentioned, but the closest I could find was that XML attributes should only be used for meta data, but said the debate was about what was actually meta data.  After the long winded explanation (sorry) how do you determine what is meta data, and when designing the structure of an XML document how should you decide when to use an attribute or an element?