Display the title of a section (or subsection) in a reference
Get the title instead of the number of a referenced chapter/section?
I have a char array buffer that I am using to store characters that the user will input one by one.  My code below works but has a few glitches that I can't figure out:   when I execute a printf to see what's in Buffer, it does fill up but I get garbage characters at the end it won't stop at 8 characters despite being declared as char Buffer[8];   Can somebody please explain to me what is going on and perhaps how I could fix this? Thanks.  char Buffer[8]; //holds the byte stream int i=0;  if (/* user input event has occurred */)  {         Buffer[i] = charInput;         i++;          // Display a response to input         printf("Buffer is %s!\n", Buffer);  }   Output:   tagBuffer is 1┬┬w! tagBuffer is 12┬w! tagBuffer is 123w! tagBuffer is 1234! tagBuffer is 12345! tagBuffer is 123456=! tagBuffer is 1234567! tagBuffer is 12345678!  tagBuffer is 123456789! Is three hours enough for an international-domestic transfer at Delhi? My International flight will be reaching New Delhi IGI at 2:45 AM and I am planning to book a domestic flight at 5:45 AM.  Is three hours sufficient for me to move from International to Domestic?  I believe there must be a shuttle service inside the airport to transfer me from International to Domestic but still I don't know if Customs time at IGI could cause any delay or not. How can I create light trails without a blurry subject? I would like to achieve this effect using my Nikon P510:      Are there any suggestions or tips that would help me do that? When can I make opportunity attacks? Why does my DIY "solar panel circuit" show battery voltage and not solar panel voltage? Browning Avocados - What Helps? Years ago  asked "Oxidized Avocado: What's Going on &amp; How to Prevent It?" That question has been merged with this one because it's dealing with the same issue.  Recently, we had this question: . Now I'm just curious, I want an answer.  After Logophobe's answer to the acidity question, and my own research backing up that answer, I feel like I know less than I did before!  Lemon contains more ascorbic acid (Vitamin C) and citric acid than limes, yet limes are more acidic overall. Distilled vinegar is more acidic than lemons and almost as acidic as limes,  is an extremely highly concentrated mixture of ascorbic acid and citric acid specifically developed to prevent browning in fruits.  So what works to keep avocados pretty and green?  Perhaps some experimentation is in order. I think I'll start with acids, since the common wisdom is that acid helps keep avocados green.  EDIT As of 1/8/15, I have added a new answer, as the highly upvoted one really only says what doesn't help. The accepted answer  shows the results of further experimentation, and what does help. Word for "scary thing that's about to occur"? I have the feeling I'm forgetting a very simple word. But anyway, is there a word for that? Example:     The [...] that haven't occurred yet are the most scary ones. I have defined my own custom vim file type with highlighting etc.  I would like to open it using the terminal based vim when I double click on it.  I am using mac os x.  Any pointers on how to start on this? What is the format for e-mail headers that display a name rather than the e-mail? I want to append several shapefiles in QGIS. The ftools 0.6.1 add-on is installed.   But under Vektor>Datenmanagement-Werkzeuge>Shapedateien zu einer zusammenführen (=append shapefiles) is only the possiblility to choose the Eingabedatei (input file) and the Ausgabedatei (output file) but not a further Datei (file) for the append itself? (Even though there are  several shapefiles in the same folder)  //Furthermore the icon "In neue Projektion exportieren" (export to new projection) is also not appearing under the: Vektor>Datenmanagement-Werkzeuge? Do I need a further add-on?//  Has anyone an idea why I can't choose a shapefile for the appending?  Thanks in advance! phil Question: Are there infinitely many primes of the form $4n+3$ and $4n+1$?  My attempt: Suppose the contrary that there exist finitely many primes of the form $4n+3$, say $k+1$ of them: $3,p_1,p_2,....,p_k$  Consider $N = 4p_1p_2p_3...p_k+3$, $N$ cannot be a prime of this form. So suppose that $N$=$q_1...q_r$, where $q_i∈P$  Claim: At least one of the $q_i$'s is of the form $4n+3$:  Proof for my claim: $N$ is odd $\Rightarrow q_1,...,q_r$ are odd $\Rightarrow q_i \equiv 1\ (\text{mod }4)$ or $q_i ≡ 3\ (\text{mod }4)$  If all $q_1,...q_r$ are of the form $4n+1$, then $(4n+1)(4m+1)=16nm+4n+4m+1 = 4(\cdots) +1$  Therefore, $N=q_1...q_r = 4m+1$. But $N=4p_1..p_k+3$, i.e. $N≡3\ (\text{mod }4)$, $N$ is congruent to $1\ \text{mod }4$ which is a contradiction.  Therefore, at least one of $q_i \equiv 3\ (\text{mod }4)$. Suppose $q_j\equiv 3\ (\text{mod }4)$  $\Rightarrow$ $q_j=p_i$ for some $1\leq i \leq k$ or $q_j =3$  If $q_j=p_i≠3$ then $q_j$ | $N = 4p_1...p_k + 3 \Rightarrow q_j=3$ Contradiction!  If $q_j=3$ ($\neq p_i$, $1\leq i \leq k$) then $q_j | N = 4 p_1...p_k + 3 \Rightarrow q_j=p_t$ for some $1 \leq i \leq k$ Contradiction!  In fact, there must be also infinitely many primes of the form $4n+1$ (according to my search), but the above method does not work for its proof. I could not understand why it does not work. Could you please show me?  Regards This has been a old live-action movie from Asia, most likely Japan. I've seen it some time in the late 80's and I think it's been black/white only.  Earth is invaded by UFOs (small and round, like flying balls), coming from Mars.  Japan (I think) built some kind of super spaceship, initially hidden within some secret port in some kind of island/mountain.  The spaceship looks similar to a classic battleship, but with an added drill below the front.  In the movie's finale it's revealed that this is some kind of   super weapon/bomb that has to be manually piloted by someone. When launched it starts rotating and flies (formed like a bullet but with the drill/corkscrew head).   To defend Earth, the ship is sent on a mission to Venus, where the UFOs seem to originate. I don't remember the specific reason or conclusion here.  The ship starts underwater or launches from the mountain on the island, then taking off and fighting UFOs while leaving Earth's atmosphere. Writing conditional (if/then) statements into ArcGIS Field Calculator using Python Parser? I have gotten stuck on seemingly simple ArcGIS field calculator python expression.  I obtained a great answer to a another similar question a few years ago: . Now I need to populate a new field based on 6 ranges of values (bedrock depth).  My attempt at writing this expression is below:    I just need to populate the empty field "bedrockdp" using the ranges in the toc called brockdepmin.     Pre-Logic Script Code:  def !GRIDCODE! (value):     if value &gt;0 and value &lt; 50:         return "0 - 50 cm from the surface"     else:         return "n/a"   bedrockdep =  GRIDCODE (!bedrockdep!) Maybe the concept, why it's used, and an example. How to permanently allow location access for a website in Safari 11? Extracting Windows 8 Start Screen Patterns Is there any way to extract the Windows 8 Start Screen patterns, in order to use them as standalone wallpapers on other systems?  For example see this screenshot:    I am interested in the dark blue background. I heard that this background is somehow adapted to your chosen color theme. So many different variations should exist.  Engadget has an article  briefly talking about these background patterns and the different color schemes. They call them "personalization tattoos".    Update:    I found the following page/guide:   This looks a very good way to achieve my goal. Unfortunately the guide seems to be dated.  I tried to find shsxs.dll on the RTM of Windows 8 without much luck. It looks like Microsoft changed the way they handle the background image. The file is nowhere to be found...  I also looked into uxtheme.dll, but it doesn't contain any interesting images.  Any new ideas? Any other *.dll with might be of interest here? Converting Older United States Dollar Bills Ubuntu 18.04 not detecting full RAM size Expansion of $(1+px+qx^2)^8\equiv 1+8x+52x^2+kx^3$... $(1+px+qx^2)^8 \equiv  1+8x+52x^2+kx^3...$  Given that expression, calculate the values of p, q, and k.  I'm guessing this is a trinomial that needs to be turned into a binomial, but how would you do it? I have no idea. I have used the websites of SO a lot the past few months because I am busy with a large scale web project. I feel I get better answers here on SO than when I just do a Google search, maybe because I can be more specific here with my problem, and the responses are really fast.  Occasionally when I am not working I try to answer some questions, but the question almost always has an answer which is 'as good as' or 'better' than the answer I would supply.  So my question/answer ratio is about 20/1 something, if not more. When I look at my profile page I see a bucket-load of questions and almost nothing I answered myself.  Is this considered bad behaviour? I can see that this looks a little egoistic.  : One devoted to one's own interests and advancement.