I'm working with TeXworks, and on my Windows machine I had a typesetting called something like "pdflatex+makeindex+bibtex". However, now that I'm working on my Mac that option is not available, so now when I build my tex-file the bibliography isn't working.  How can I fix this?  Thanks!
A lot of people write makefiles that say something like  paper.pdf: paper.tex         pdflatex paper         bibtex paper         pdflatex paper         pdflatex paper   To handle re-running TeX to get new/changed references and so forth. Is there a better way to do this?
scanf() misbehaving Add a property to a JavaScript object using a variable as the name? I'm pulling items out of the DOM with jQuery and want to set a property on an object using the id of the DOM element.   Example  const obj = {}  jQuery(itemsFromDom).each(function() {   const element = jQuery(this)   const name = element.attr('id')   const value = element.attr('value')    // Here is the problem   obj.name = value })   If itemsFromDom includes an element with an id of "myId", I want obj to have a property named "myId". The above gives me name.  How do I name a property of an object using a variable using JavaScript? Capitalizing "the" when mid-sentence in a company name? Consider a company called:     The Association of Examples Ltd.   When you refer to this company, should you have to capitalize "the" when it's mid-sentence and would have been used even if it wasn't in the name?   It looks odd to me:     In other news, The Association of Examples announced that...      Sarah is the founder of The Association of Examples and has...   But I imagine it's the correct way.  For the grammar-conscious, why or why not?    To give you context, I am asking also when branding ones own company like that. The Economist did it (as did ) and , but I can imagine it can cause confusion. Finding $\lim\limits_{x\to1^-}\Bigl(\prod\limits_{n=0}^{\infty}\Bigl(\frac{1+x^{n+1}}{1+x^n}\Bigr)^{x^n}\Bigr)$ Compute : $$L=\lim_{x\to 1^-} \left(\prod_{n=0}^{\infty} \left(\frac {1+x^{n+1}}{1+x^n}\right)^{x^n}\right)$$   My try:   Writing out the first few terms I noticed that the limit can be expressed as $$L=\lim_{x\to 1^-} \frac 12\left(\prod_{n=1}^{\infty} (1+x^n)^{x^{n-1} -x^n}\right)$$ $$L=\frac 12\lim_{x\to 1^-} \left(\prod_{n=1}^{\infty} (1+x^n)^{x^{n-1}}\right)^{1-x}$$  Converting to exponential form I get $$L=\frac 12 \exp {\left(\lim_{x\to 1^-} (1-x)\sum_{n=1}^{\infty} \left(x^{n-1}\ln(1+x^n)\right)\right)}$$  And got stuck here. I did try to use approximation $\ln x\sim x$ hereon to get final answer as $\frac {\sqrt e}{2}$ but I think it was improper to use approximation and hence I believe that the answer I got is flawed. I also noticed that the form I obtained is quite similar to be used for a Riemann Sum but I didn't get a way to tackle the problem using that way.  Can someone please help me with this problem.... Finding centrelines from polygons in QGIS? I was wondering if there is a way to create centre lines from polygons in QGIS? I have a polygon layer, but ideally need the centrelines as a separate file. Various \textcolor within lstlisting? So I was reading this:  and while the answers for the first question are good, nobody gave much attention to the second one. In fact, people only said that it can be proved without giving any proof or any.  So, if I have a Lagrangian and ADD an arbitrary function of $\dot{q}$, $q$ and $t$ in such a way that the equations of motion are the same, does this extra function MUST be a total time derivative?   EDIT Ok, I changed my question a little bit:  Question: If I have a function that obeys the Euler-Lagrange equation off-shell, this implies that my function is a time derivative? (This was used in Qmechanic's answer of this other question: , equation 14.)  Also, why people only talk about things that change the Lagrangian only by a total derivative? If this is not always the case that keeps the equation of motion the same, so why is it so important? And why in the two questions I posted about the same statement on Landau&amp;Lifshitz's mechanics book only consider this kind of change in the Lagrangian? Why would an incorrect password attempt take a lot longer to process than a correct one? The most prominent place I've noticed this is when SSH-ing at work, but I feel like I've observed this behaviour elsewhere too.  When I try to log into Linux servers from my Windows desktop at work, I've noticed that if I mis-type my password, it takes a good 5 seconds or so before I get "Access Denied" back. Then when I type my password correctly, the login (along with welcome messages etc) is virtually instant.  Is there any logical reason for this, or would it be down to some odd configuration that's specific to the machines here at work? find the measure of $AMC$ if $M$ is the midpoint of $BC$ then find the measure of $AMC$.    I tried to use the angles to find $AMC$ but I don't know how to use that $M$ is the midpoint of $BC$. Bullied boy given immense powers by an alien race who destroys the human race Decision boundaries and Gaussian density functions #!/bin/bash echo "$(curl -s -I https://google.com|grep Server)" abc   returns:  abcer: gws   and bash -x shows:    ++ grep Server ++ curl -s -I https://google.com ' abco 'Server: gws  abcer: gws   but    echo abc "$(curl -s -I https://google.com|grep Server)"`    returns  abc Server: gws   In other words, if I add text AFTER the curl command, it gets mangled, but it's ok if I add it before curl. What is happening? I cannot figure it out. Proof that the irrational numbers are uncountable Can someone point me to a proof that the set of irrational numbers is uncountable? I know how to show that the set $\mathbb{Q}$ of rational numbers is countable, but how would you show that the irrationals are uncountable? Padding a number in a filename to a fixed length I have a directory of files such as:  file.1.png file.2.png … file.10.png … file.1000.png file.1001.png …   How can I pad the number to 4 digits? It should end up like this:  file.0001.png file.0002.png … file.0010.png … file.1000.png file.1001.png … What is the Taylor series of $$\ln \frac{1-x^2}{1+x^2}$$   ?   I started by evaluating the first derivatives but the more I go, the more complicated they are and I can't identify a pattern. How do I fill an area with faces lined up in a grid over a not flat surface? Hello to everyone again,  I'm looking for an addon or a short cut to fill fast and simmetrically a NOT FLAT surface that needs to be closed with vertices. Doing it manually it takes a lot of time. I tried to do CTRL F and then Grid fill,but it didn't work. Neither F key works. Check the attached screenshot. thanks. Does "staff" take a plural verb? Which one of these two statements is correct?     Our staff do ...      Our staff does ...   And is staffs ever correct? Irreducibility of reciprocal polynomials Given that  $f(x)=\sum\limits_{k=0}^n a_kx^k$ is an irreducible polynomial, show that $g(x)=\sum\limits_{k=0}^n a_kx^{n-k}$ is irreducible too. I don't see how this specific coefficient exchange would preserve the irreducibility. Is there something else I should be looking at? Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? Traditional search-as-you-type on newer Nautilus versions Until now I was using a "traditional" version of Nautilus: that that comes with Ubuntu 10.10. Now I'm using 3.6.3, included with Ubuntu 13.04 (most likely any recent version is equivalent for the scope of my question, anyway).  One major difference between the two is the search-as-you-type behavior: in classic versions of Nautilus, when you typed an input, the file with the closest alphabetical match would become the selected one, the eligible files/folders being restricted to the current directory.  The new behavior is to perform an optionally-global search instead.  Can one configure Nautilus to provide the previous functionality ?