Bibtex: cite-key instead of question mark if not found
Replace unknown reference (?) with the tag from \ref or \cite
What's the difference between $(stuff) and `stuff`? How can I convert an integer into its verbal representation? Is there a library or a class/function that I can use to convert an integer to it's verbal representation?  Example input:     4,567,788`   Example output:     Four million, Five hundred sixty-seven thousand, seven hundred eighty-eight Can we really not tell if we are moving? It has been a while since I've thought about physics, however, I remember something about how if you are on a train with no windows that is going perfectly straight and is perfectly smooth, there is no experiment that you could perform to prove that you are in motion or at rest. So I have a couple of questions related to this.   Is this still held to be true? I was just wondering if anything in physics has come to light since I learned about this (about 10 years ago) that would allow an observer on the train to tell if they are moving. If this is true, why couldn't you accelerate a particle in different directions to a certain mass and measure how much energy it took to get it up to that mass. If you were moving in any direction, wouldn't you measure less energy in your direction of travel? Would having an outside observer affect the aforementioned experiment in any way? I know that \: in LaTeX produces a space when rendered.  Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find. How to install packages to external drive (and run them)? I am running Xenial 16.04 and looking to install packages to an external drive - my computer has a 32gb SSD so it would be very useful to me to be able to use an external drive.  In a quick search I found a framework called  which seems to be designed to package all dependencies for a program (chromium, GIMP, some python packages, etc), but haven't had time to look into it.   seems to be looking for the same solution I am.   Thanks, Chris Toggle Switch to swap the connections of two buttons Should the network use thousands separators in numbers? What do we mean by hyperparameters? Can anyone give me full details about what we mean by hyperparameters, and what in the Dirichlet distribution are called hyperparameters? A practice example for the estimation of those parameters would also be useful. What corrections can you make on galley proofs? When I receive galley proofs of a paper, I look at possible errors introduced by the copy-editing team. But while I proofread the article, there are sometimes small mistakes I'd like to fix, which were not introduced by them (i.e. they were already present in the accepted version of the manuscript).  Usually, the proofs are accompanied by instructions saying that extensive changes should not be introduced at that time, and any such changes would have to be approved by the editor (hence, I suppose, delaying publication). However, the limit is not very clear to me. What is considered extensive changes? In particular, what do you think of the following items (from my experience):   Slight changes in wording, to improve clarity Updating a citation, because an “in press” or “ASAP” article now has page numbers Adding an important (but not crucial) citation one had missed, in the introduction Adding a citation to a paper that has been published since the manuscript was submitted; possibly adding a short sentence to the text     What I have done so far is change everything that I think should be changed to improve the paper (including all the above items), and let the typesetter decide whether he wanted to send it back to the editor. I never received any complaint or comment on my changes, which could indicate that it was the correct course of action. Looking for intro to Conformal Bootstrap Show rigorously that the sum of integrals of $f$ and of its inverse is $bf(b)-af(a)$ Word for a person being used I'm looking for a word to describe someone who is being used. I want a noun to describe this person, not a verb or or adjective.  Maybe like a pushover. I am attempting to write a filter using something like sed or awk to do the following:   If a given pattern does not exist in the input, copy the entire input to the output If the pattern exists in the input, copy only the lines after the first occurrence to the output   This happens to be for a "git clean" filter, but that's probably not important. The important aspect is this needs to be implemented as a filter, because the input is provided on stdin.  I know how to use sed to delete lines up to a pattern, eg. 1,/pattern/d but that deletes the entire input if /pattern/ is not matched anywhere.  I can imagine writing a whole shell script that creates a temporary file, does a grep -q or something, and then decides how to process the input. I'd prefer to do this without messing around creating a temporary file, if possible. This needs to be efficient because git might call it frequently. Clarification on maps in Salesforce I know this might be a very basic question but i'm pretty confused by this:  Map&lt;Id,Account&gt; accountWithOpportunities =      new Map&lt;Id,Account&gt;([SELECT Id,(SELECT Id FROM Opportunities) FROM Account]);   I have no clue on to where the Opportunities are relevant at all in this map and how they are stored or can be accessed?   Can anyone clear this out for me? Wavy stream of liquid I am always really hesitant to mess around with $IFS because it's clobbering a global.   But often it makes loading strings into a bash array nice and concise, and for bash scripting, conciseness is hard to come by.   So I figure it might be better than nothing if I try to "save" the starting contents of $IFS to another variable and then restore it immediately after i am done using $IFS for something.   Is this practical? Or is it essentially pointless and I should just directly set IFS back to whatever it needs to be for its subsequent uses? It's a series of fantasy books in which the inhabitants of the world, from the time when they're children, get to somehow have an accompanying small animal that represents their soul or their personality. How do I ensure a piece of code runs only once? In  it says that flagged comments can be handled automatically if flagged repeatedly (3 + (score / 3) flags = deletion). Which is great; mods are busy people.  In , the venerable Bill the Lizard says that if all comments on a post are obsolete, you can flag the post (or one of the comments) with a custom flag saying that they're all obsolete, and the mod can remove them with one fell swoop. Problem is, that requires a mod.  What should I do when some of the obsolete comments are mine? I can't flag my own comments, and I don't like raising custom flags if I can avoid it.  You're wondering why I don't just delete them. There are two scenarios where I don't, at least not immediately:   Someone has commented with incorrect information. In that situation, I reply to the comment telling them how they've got it wrong. (Sometimes, of course, they quite correctly reply telling me how I got it wrong, which is neither here nor there&nbsp;&mdash; we still end up with obsolete comments. :-) ) Frequently, they reply saying "you're right" but (near universally) leave the comment lying around. I can (and do) then comment again saying "Let's clean these up" and flag their comments as obsolete. But I can't flag mine. Nor do I want to remove mine while the incorrect comment is still there; it leaves a confusing situation for anyone coming to the post later. Someone has commented with correct information. In that situation, if appropriate (e.g., the post author isn't busily editing at the same time and I know enough to do it properly), I'll edit the comment into the post and reply with "You're right, edited that in." and flag their comment as obsolete. These are rarely removed by the commenter. And again I can't flag mine.   The first scenario is the more problematic, since I can go back 10-20 minutes later and remove my "edited that in" comment and there's no harm if their comment is still there.  I currently bookmark and check back periodically, but that's labor-intensive and I'd like a better way.  Ideally, I'd want to tie my comment to one I've flagged so that it's deleted automatically if the other one is (by flagging, or by the commenter). That's a fair bit of development, though, I'm guessing.  What should I do? Go with a custom flag saying "The conversation between X and me is now obsolete," even though that means dumping it on a mod? I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file.  I've found many different web pages that claim they have a solution, but so far none of them work.  Here's what I have at the moment (leaving out the try-catch block):  URL url = new URL("com/xyz/resources/camera.png"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); getFrame().setIconImage(img);   The class that contains this code is in the com.xyz package, if that makes any difference.  That class also extends JFrame.  This code is throwing a MalformedUrlException on the first line.  Anyone have a solution that works?