I'd like the References title to be bold. My MWE is below. If you comment-out the \usepackage{natbib} (and following line) the problem doesn't occur. Assuming  natbib is causing this, I thought adding  \renewcommand{\bibsection}{\textbf{References}}  should correct this, but no change is made.  \documentclass[jou]{apa6}   \usepackage{natbib} % to change citation/references/bibliography style  \renewcommand{\bibsection}{\textbf{References}}   \begin{document}  See \cite{smith} and \cite{simpson}  \bibliographystyle{apalike} \begin{thebibliography}{}  \bibitem[Smith, 2002]{smith} Smith, F. (2002). \newblock {\em Title}. \newblock Publisher Name.  \bibitem[Simpson, 2002]{simpson} Simspon, P. (2002). \newblock {\em Title}. \newblock Publisher Name.  \end{thebibliography}   \end{document}     this prints:    Edit/solution: I found the solution from the article linked in the comment, However, it's not an exact duplicate as I am not using the book class, so the solution is slightly different (the linked article uses \bibname while I should use \refname. Anyway, here's the solution for my problem:  \documentclass[jou]{apa6}   \usepackage{natbib} % to change citation/references/bibliography style  \AtBeginDocument{\renewcommand{\bibsection}{\section\refname}}   \begin{document}  See \cite{smith} and \cite{simpson}  \bibliographystyle{apalike} \begin{thebibliography}{}  \bibitem[Smith, 2002]{smith} Smith, F. (2002). \newblock {\em Title}. \newblock Publisher Name.  \bibitem[Simpson, 2002]{simpson} Simspon, P. (2002). \newblock {\em Title}. \newblock Publisher Name.  \end{thebibliography}   \end{document}
I'm using a \chapterstyle{tandh} because I want my chapters numbered. In order to get a References chapter numbered as well I used the following code:  \renewcommand{\bibsection}{% \chapter{\bibname}}   That worked fine, I got my References chapter numbered!!   But now, in order to get my references in a author-year style I'm using the natbib package. Seems like the package ignores my code and the References chapter is not numbered anymore.  Can someone help me?
MySQL Great Circle Distance (Haversine formula) I've got a working PHP script that gets Longitude and Latitude values and then inputs them into a MySQL query. I'd like to make it solely MySQL. Here's my current PHP Code:  if ($distance != "Any" &amp;&amp; $customer_zip != "") { //get the great circle distance      //get the origin zip code info     $zip_sql = "SELECT * FROM zip_code WHERE zip_code = '$customer_zip'";     $result = mysql_query($zip_sql);     $row = mysql_fetch_array($result);     $origin_lat = $row['lat'];     $origin_lon = $row['lon'];      //get the range     $lat_range = $distance/69.172;     $lon_range = abs($distance/(cos($details[0]) * 69.172));     $min_lat = number_format($origin_lat - $lat_range, "4", ".", "");     $max_lat = number_format($origin_lat + $lat_range, "4", ".", "");     $min_lon = number_format($origin_lon - $lon_range, "4", ".", "");     $max_lon = number_format($origin_lon + $lon_range, "4", ".", "");     $sql .= "lat BETWEEN '$min_lat' AND '$max_lat' AND lon BETWEEN '$min_lon' AND '$max_lon' AND ";     }   Does anyone know how to make this entirely MySQL? I've browsed the Internet a bit but most of the literature on it is pretty confusing. Can you contract the main verb '[I] have' in a sentence? C state-machine design In the book &quot;Quantum Mechanics and Path Integrals&quot; Feynman &amp; Hibbs state that  the probability $P(b,a)$ to go from point $x_a$ at time $t_a$ to the point $x_b$ at the time $t_b$ is $P(b,a) = \|K(b,a)\|^2$ of an amplitude $K(b,a)$ to go from $a$ to $b$. This amplitude is the sum of contributions $\phi[x(t)]$ from each path. $$ K(b,a) = \sum_{\text{paths from $a$ to $b$}} \phi[x(t)]$$ The contributions of a path has a phase proportional to the action $S$: $$ \phi[x(t)] = \text{const}\ e^{(i/\hbar)S[x(t)]}$$  Why must the contribution of a path be $\sim e^{(i/\hbar)S[x(t)]}$? Can this be somehow derived or explained? Why can't the contribution of a path be something else e.g. $\sim \frac{S}{\hbar}$, $\sim \cos(S/\hbar)$, $\log(S/\hbar)$ or $e^{- (S[x(t)]/\hbar)^2}$ ? Edit: I have to admit that in the first version of this question, I didn't exclude the possibility to derive the contribution of a path directly from Schrödinger's equation. So answers along this line are valid although not so interesting. I think when Feynman developed his formalism his goal was to find a way to quantize systems, which cannot be treated by Schrödinger's equation, because they cannot be described in terms of a Hamiltonian (e.g. the Wheeler-Feynman absorber theory). So I think a good answer would explain Feynman's Ansatz without referring to Schrödinger's equation, because I think Schrödinger's equation can only handle a specific subset of all the systems that can be treated by Feynman's more general principle. $f:I=[\pi,2\pi]\to \mathbb{R}^2$ be given by $f(t)=(\cos t,\sin t)$  which of the following are necessarily correct?  $1$. $\exists t_0\in I$ such that $f'(t_0)=\frac{1}{\pi}(f(2\pi)-f(\pi))$  $2$. $\nexists t_0\in I$ such that $f'(t_0)=\frac{1}{\pi}(f(2\pi)-f(\pi))$  $3$.$\exists t_0\in I$ such that $\pi||f'(t_0)||\ge ||(f(2\pi)-f(\pi)||$  $4$. $f'(t)=(-\sin t,\cos t)\forall t$  $4$ is clearly true, $1$ is true by Mean Value Theorem as $f$  satisfies all the conditions of MVT? have no idea of $2$ and $3$, Thank you for help I have this graphic. I need to change the color of the graphic to hex color: 1485cc...is there a way to make this graphic match that particular hex color hue...without me having to have to re create the graphic. Can every game of Klondike-Solitaire be solved? I play a lot of Solitaire games on my Android phone and love to keep an eye out for the statistics.  Given that the Solitaire version lets you restart the game endlessly, I usually play until I solve it. But I never managed to solve more than 80% of the games played (1000+).  So now I wonder, is every Solitaire game solvable? "Whether or not" vs. "whether" This will depend on whether he's suitable for the job.    This will depend on whether he's suitable for the job or not.   This will depend on whether or not he's suitable for the job.         It is still not defined whether we're following that approach.   It is still not defined whether we're following that approach or not.   It is still not defined whether or not we're following that approach.         "Or not" doesn't really seem to be needed to complement "whether". Why do people use it then? Is it redundancy and nothing more? Or is it for emphasis? Or are there cases when "or not" is required for the sentence to be grammatical? The limit of reciprocal is the reciprocal of the limit While I was reading the book Exploratory examples for real analysis, I came across this:     to show that : $$\lim_{x\rightarrow x_o}\frac{1}{h(x)} = \frac{1}{\lim_{x\rightarrow x_o}{h(x)}} = \frac{1}{M}$$      Discussion:Let $\epsilon \gt 0$.we want to find $\delta \gt 0$ such that       if  $0 \lt |x-x_0| \lt \delta $,then $\Big|\frac{1}{h(x)}-\frac{1}{M}\Big|\lt \epsilon$.      In order to get expression involving $|h(x)-M|$,we first find the common denominator:        $\Big|\frac{1}{h(x)}-\frac{1}{M}\Big|=\Big|\frac{M-h(x)}{M~h(x)}\Big|$      $~=\Big|\frac{h(x)-M}{|M|~|h(x)|}\Big|$.      As we have to deal with variable term $|h(x)|$ in denominator.We can construct bound .Let $\epsilon =\frac{|M|}{2}$ ,since lim$_{x\to x_o}h(x)=M$,there exists $\delta_1\gt 0~~$ s.t.       if $0 \lt |x-x_0| \lt \delta_1 $,then $|h(x)-{M}|\lt \frac{|M|}{2}$.      As you study steps below,identify that step where $h(x)\neq 0$ for all $0 \lt |x-x_0| \lt \delta_1 $ plays a critical role:      $|M|=|M-h(x)+h(x)|$      $~~~~~~\leq |M-h(x)|+|h(x)|$      $~~~~~~= |h(x)-M|+|h(x)|$      $~~~~~~\lt \frac{M}{2}+|h(x)| \implies$      $\frac{|M|}{2} \lt |h(x)| \implies$      $\frac{1}{h(x)}\lt \frac{2}{|M|}$,where $0 \lt |x-x_0| \lt \delta_1 $.      Now that we've bound for $1/h(x)$,we can apply the definition to term $|h(x)-M|$.      Since     lim$_{x\rightarrow x_o}h(x)=M$,we can find $\delta_2 \gt 0$ such that,       $~~~~~~~~~~~~~~~~~~~~~~~~~~~~$if  $0 \lt |x-x_0| \lt \delta_2$, then $|h(x)-M|\lt \frac{|M|^2 \epsilon }{2}$   The thing I can't understand is for what purpose did the author work with such complicated expression involving $\epsilon $ in the end of the discussion? What exactly is "base ISO" and how do I find what is base ISO on my camera? If I understood correctly, base ISO is in full stop steps from the lowest possible ISO setting on my camera. For example if the lowest setting on my camera is ISO 100, than the following table would be base ISO:    100, 200, 400, 800, 1600, 3200, 6400   While steps in between like   125, 160, 250, 320, 500, 640, 1000, 1300, 2000, 2500, 4000, 5000   would be third-stop "pulled" values, which result more noise than perhaps higher base ISO values (for example 2500 is worse than 3200).   Did I get this right or missed by a mile, what did I miss? Do non-base ISO values generate more noise than next higher base-value ISO stop? How do I find what are my base-value ISO stops (is it the lowest ISO value multiplied by 2n)? What's the function of the ~ bitwise operator (Tilde) How is the derivative of $\textrm{Trace}\left\{ X^T A X B\right\}$ with respect to $X$ equal to $AXB + A^TXB^T$? Error term in equally spaced nodes Prevent Photos app on OSX from launching when plugging in device The Photos app opens whenever I plug in my phone.    How can this be prevented?  I have seen many solutions for the old iPhoto app that involve changing the "Connecting camera opens" option, but the new app has no such option. C programming: How to program for Unicode? Taking back turns, and forgotten privileges A generic question across most board games: once a player has taken their turn (taken their finger off the piece they are playing), should they be allowed to change their mind?  Similarly, if a player forgets to take a privilege, such as an occupied building in Puerto Rico giving an extra worker, or plantation, if they remember a few moves later, should they be allowed to take the privilege?  Very few rules explicitly express how these events should be dealt with, so they are generally left up to the group. However, my group's rules will change depending on the personality of the players playing (not all members are available each time we play). I would like to make this consistent, and would appreciate feedback on how others deal with this scenario. How much energy does lowering an object into a black hole generate? An object of mass m is slowly lowered into a black hole of mass 1000 m. Is the amount of braking energy larger than $0.6 mc^2$?   Now what if, after lowering the mass close to the event horizon, we wait the black hole to shrink to mass 100 m, by emitting Hawking radiation, and then we lower the mass some more? Is the braking energy of the second lowering process larger than $0.5 mc^2$?   I wonder can we extract more than $E=mc^2$ energy from mass m?  (In this thought experiment we use a wire and a winch, or anything that works) Why does the amount of energy transferred depend on distance rather than time? The change in energy of an object can be determined by the work equation, where work is the change in energy:  $$ W = F \cdot d $$  I conceptualize the transfer of energy as simply a series of small "packets" of energy being transferred at every Planck length. These small "packets" of energy add up to the total energy transferred (i.e. work). I'm not sure if this conceptualization is correct, so correct me if I am wrong.  However, it makes me wonder why the amount of energy transferred is dependent on distance and not time.  $$ m_1 = 10~kg \\ m_2 = 20~kg \\ W_1 = (10~N)\cdot(5~m) = 50~J \\ W_2 = (10~N)\cdot(5~m) = 50~J \\ W_1 = W_2 \\ t_1 \neq t_2 $$  If I apply a constant force on an object, why isn't the energy transferred at a constant rate with respect to time? The energy transfer rate varies dependent on how long it takes to cover the set distance.  In other words: why is the energy transferred consistent per unit of distance, and not per unit of time? How can I sum two values and store the result in other variable? In LaTeX2e,how can I sum two values and assign them to other variable?  I want to compute something like:   var=\textwidth - 1cm    And if both were constants:   var=1+1 Finding an item in a List using C#