I would appreciate any help with a problem that I have with reference to figures in my appendix. For example, instead of (Fig. A.1 ), I only get (Fig. A). I read all the previous posts but they did not help me. According to a previous post, I even added   \renewcommand\thesection{\Alph{section}} \renewcommand{\thefigure}{\thesection.\arabic{figure}}   after the \appendix command, but that did not help either. Here is the minimal code I use:  \documentclass[reprint, superscriptaddress,  amsmath,amssymb,  aps, ]{revtex4-1}   \section{AAA}\label{AAA} Blah blah Fig. \ref{xyz}  blah blah.  \appendix \section{ BBB}\label{BBB}  \begin{figure} \begin{center} \includegraphics[scale=0.5]{xyz.png} \caption{blah blah} \end{center}\label{xyz} \end{figure}
I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange post)  \newcounter{P} \newcommand{\plb}[1]{\refstepcounter{P}\label{#1} \textbf{P-\ref{#1}.}}  \begin{problem} \plb{p1} A parallel-wire transmission line is constructed of \#6 AWG copper wire (diameter $d=0.162$ in., conductivity $\sigma_c=5.8\times 10^7$ S/m) with a 12-inch separation in air. Assuming no leakage between the two wires, find $R'$, $L'$, $G'$, and $C'$. Assume a working frequency of 1 MHz. \end{problem}  \begin{solution} Using Table.~\ref{tab:tlparam} and Fig.~\ref{fig:tlempl},  \[ Rs = \sqrt{\pi f \mu_c/\sigma_c} = 2.61\times10^{-4}~ \Omega\] \[ R' = \frac{2R_s}{\pi d} = 4.04\times10^{-2} ~\Omega\text{/m} \] \[ L' = \frac{\mu_0}{\pi} \ln{\frac{2D}{d}}=2.0~\mu \text{H/m} \] \[ C' = \frac{\pi \epsilon}{\displaystyle\ln{\frac{2D}{d}}}=5.56 ~\text{pF/m} \] $G'=0$ because the problem states that there is no leakage between the two wires. \end{solution}  \begin{figure}[ht] \begin{centering}     \includegraphics{fig24}     \caption{(Fig.2-4 from FAE) A few examples of transmission lines.} \end{centering} \label{fig:tlempl} \end{figure}  \begin{table}[ht] \caption{(Table 2-1 from FAE)Transmission-line parameters $R'$, $L'$, $G'$, and $C'$ for three types of lines.}     \begin{tabular}{c}         \hspace{3cm}\includegraphics{tb21}     \end{tabular} \label{tab:tlparam} \end{table} ... and more   Now all the figure references stop working, I get "Fig. " instead of "Fig. 1". The table references are alright though. Any idea what the problem could be?
How can I tell whether beetroot is still edible? I have some raw beetroot I bought about a week ago, having stored them at room temperature since. It's the first time I bought it raw, and I'm unsure whether it's still edible.   It is already soft, and when I cut it, it smells... Well, different than I expected. It's not a rotten smell as such, but it's nothing like the sweet beet-rooty smell I know from the pre-packaged, pre-boiled supermarket variety.  How can I tell whether it's still safe to eat? Does the stock market create any sort of value? Sorry if the below seems like a conspiracy theory. It probably is, but I probably don't understand something. (This has bugged me to no end as long as I can remember.)  Okay, so here is what I understand about the stock market?   The main way money enters the stock market is through investors investing and taking money out. The only other cash flow is in through dividends and out when businesses go public.   In a Ponzi scheme, there is usually some small source of income to hide the fact that it's a Ponzi scheme. Dividends are pretty insignificant. For the purposes of this question, we will only consider non-dividend stocks.  When you buy stock, it is claimed that you own a small portion of the company. This statement has no backing, as you cannot exchange your stock for the company's assets.   For example, if I bought $10 of Apple Stock early on, but it later went up to $399, I can't go to Apple and say "I own $399 of you, here you go it back, give me an iPhone." The only way to redeem this is to sell the stock to another investor (like a Ponzi Scheme.)  The stock market goes up only when more people invest in it. Although the stock market keeps tabs on Businesses, the profits of Businesses do not actually flow into the Stock Market.   In particular, if no one puts money in the stock market, it doesn't matter how good the businesses do.    Based on the above, it seems like the Stock Market has little to do with investing businesses to create growth, and primarily grows in a similar way to a Ponzi Scheme. (Some differences include that it is Stochastic (so when it collapses, it can be blamed on luck or the economy) and it has no top operator (similar to a Pyramid Scheme)).  Am I missing something? Does the stock market create value for investors? Would spending one more year as an undergraduate adversely affect my chances of getting into a graduate program?   I wasn't really thinking about economics PhD until recently so my GPA is not too impressive and I lack in math courses so I've decided to spend one more year to boost my GPA taking upper level courses and get a math minor.  However, could the very fact of spending one more year to finish college be a disadvantage of getting into a graduate program? Prove that if $d$ divides $n$ then $φ(d)$ divide $φ(n)$ for $φ$ denotes Euler’s $φ$-function.  I know that $d|n$ mean there exists some integer $k$ such that $n=kd$, but how can I use this to prove $φ(d)$ divide $φ(n)$ Why do we use $x - y$ rather than $x + y$ in the definition of the convolution? Is it just convention? (If we are thinking of convolutions as weighted averages, for instance against "good kernels," it should make no difference.)  Why $(f * g) (x) = \int f(y) g(x - y) dy$ rather than $(f * g) (x) = \int f(y) g(x + y) dy$?  Edit: I'm finding it really hard to choose a best answer. There are at least three very good ones here. What are the differences between Factor Analysis and Principal Component Analysis? Is there a "best practice" or standard to make a few iptables rules permanent? I mean: automatically applied upon a system reboot?  I am using a VPS with Ubuntu Server 10.04 LTS (Lucid Lynx).  Thank you.  BIG EDIT: I don't want ANY rule to be persisted (like iptables-persistent package does). I want only my own specific set to be reloaded... if other rules are eventually added by running iptables, these should be discarded... Who are the clients of my shared iTunes library? Is it possible to see who is currently connected and listening to a shared iTunes library? Is it possible to see which songs they listen to and how many/often?  It's not really important; I'm just curious about it. Would be nice to know which colleagues love my music… Set String via String.prototype function without return Revolution of Koch Snowflake I would like to convert a Mp4 file in HD into a Mp4 file of lower resolution. Is there any software that can be used for this? Why did Dumbledore drink the potion in the attempt to get a Horcrux? When Albus Dumbledore  finally reaches the island with Harry Potter and finds out that you can't get near the potion, he made a cup and drank it. Why couldn't he just have poured the potion on the "floor"? Why couldn't he have made a big cup to hold almost everything inside the basin? Keep the same field headers after joining a table to a shapefile in QGIS I noticed that after joining a table to a shapefile the headers of each fields in the table used for the join are changed by QGIS and they are attributed to a different name.  For instance, I had a shapefile with vegetation_codes and a table with vegetation_codes and veg_definition (these were the headers). After joining the table to the shapefile and also saving the shapefile and creating a new one, the vegetation_classes header was changed into vegetati_1.  Is there a way to keep the original headers?  I am using QGIS Dufour on Windows 7 and the table that I join to the shapefile is CSV (tried with dbf as well and the problem is the same). Intel HD Graphics 620: Does my display adapter support HDMI 2.0 necessary for a 4k display? I want to connect my laptop (Inspiron 15 5000 Series) to a 4k display. When I read online about this it seems that HDMI 2.0 is a necessaity to handle the large resolutions / refresh rates involved to get full benefits of a 4k display.  Use case: I'm not going to use this to play games. Most of my use-case is editing documents, emails, spreadsheets and some engineering drawings and video (watching not editing).   The goal behind going 4k is to boost productivity by having more things open at once to read side by side.   I looked into the Dell specs and they only mention an HDMI without going into the details of what type or whether it will support HDMI 2.0 / 4K TV.     How do I tell whether my Dell Inspiron Laptop (i7 7500 U processor) supports this?  I looked under the Display Adapters and can see that I have an "Intel HD Graphics 620"  listed.   Will this suffice to tell me if this display adapter will support HDMI 2.0 / 4k display?   Or should I be checking out some other settings?  Thanks! Bonferroni adjustment in SPSS - what does it do? I'm probably being a bit simplistic here, but from what I understand the Bonferroni post hoc test is simply when we adjust the alpha to account for inflated error when several post hoc tests are conducted. You divide the alpha by number of tests. So what exactly does SPSS do when we click the button for Bonferroni?   Shouldn't the dividing of alpha be done by us in interpreting the result, e.g. if we do 10 post hoc tests our alpha criterion should be .005 so if the p value is .012 then it is not significant, but SPSS hasn't done anything there, we have just changed our interpretation. So what exactly is it adjusting? Water Wars: Time Travel TV Show? Object appears smoothed after rendering but not in viewport How to do one-class text classification? I have to deal with a text classification problem. A web crawler crawls webpages of a certain domain and for each webpage I want to find out whether it belongs to only one specific class or not. That is, if I call this class Positive, each crawled webpage belongs either to class Positive or to class Non-Positive.  I already have a large training set of webpages for class Positive. But how to create a training set for class Non-Positive which is as representative as possible? I mean, I could basically use each and everything for that class. Can I just collect some arbitrary pages that definitely do not belong to class Positive? I'm sure the performance of a text classification algorithm (I prefer to make use of a Naive Bayes algorithm) highly depends on which webpages I choose for class Non-Positive.  So what shall I do? Can somebody please give me an advice? Thank you very much! What are attention mechanisms exactly? Attention mechanisms have been used in various Deep Learning papers in the last few years. Ilya Sutskever, head of research at Open AI, has enthusiastically praised them:    Eugenio Culurciello at Purdue University has claimed that RNNs and LSTMs should be abandoned in favor of purely attention-based neural networks:    This seems an exaggeration, but it's undeniable that purely attention-based models have done quite well in sequence modeling tasks: we all know about the aptly named paper from Google,   However, what exactly are attention-based models? I've yet to find a clear explanation of such models. Suppose I want to forecast the new values of a multivariate time series, given its historical values. It's quite clear how to do that with an RNN having LSTM cells. How would I do the same with an attention-based model? Are there rules for using manacles in combat? I can't quite find in the PHB or DMG how to slap manacles onto someone during combat. PHB 152 describes how to break out of mundane manacles, while DMG 165 shows how Dimensional Shackles work (they are essentially magic manacles -- use 1 action to bind an Incapacitated target).  Is there an official rule on how to use manacles in combat, or do we have to use house rules?