I am a user of emacs but basically I use the basic commands. I do some competitive coding and for every problem that I solve in C++ I have to write  #include&lt;iostream&gt; #include&lt;stdio.h&gt; using namespace std; int main() {   return 0; }   before I start writing the solution. I was wondering that the mighty text Editor like Emacs must have some feature to pre include a text of string.
Particularly, what is the best snippets package out there?  Features:   easy to define new snippets (plain text, custom input with defaults) simple navigation between predefined positions in the snippet multiple insertion of the same custom input accepts currently selected text as a custom input cross-platform (Windows, Linux) dynamically evaluated expressions (embedded code) written in a concise programming language (Perl, Python, Ruby are preferred) nicely coexists with others packages in Emacs   Example of code template, a simple for loop in C:  for (int i = 0; i &lt; %N%; ++i) {   _ }   It is a lot of typing for such common code. I want to invoke a code template or snippet which inserts that boilerplate code for me. Additionally it stops (on TAB or other keystroke) at %N% (my input replaces it) and final position of the cursor is _.
Which comes first: cat or dog? Which comes first in a sentence?  I know some word pairs such as bacon and eggs, where bacon always comes first. E.g:     Make me bacon and eggs for dinner, honey.   Cats and dogs are the two most common pets I know of. What is the preferred order?   Dogs are superior.     Don't put dogs and cats together, they might fight!  Cats are superior.     Don't put cats and dogs together, they might fight! Random integer in VB.NET I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-fashioned random number.  How would I do that? I am using Google Chrome. I re-installed it today as it was crashing when I start it. I guess may be that this was due to any of my Extensions or Google Update. I disabled my extensions but it was still crashing. Now I installed an old version of chrome from . However, Chrome automaticallyuppdates itself (although Windows asks me before installing and I don't grant it permissions, its still annoying to get Google update asking me permission after a couple of minutes.   I saw the question at  however, it doesn't seem to hlp me. i disabled the service and I stopped it as well, but the problem still persists. I also tried to look into the registry according to the following link:  but the "Policies" section of my registry doesn't contain any folder called "Google". I use Windows 7 - 64 bit Home Premium Service pack 1.  Could anybody help? Thanks a ton! Can I choose which records are copied in a Partial Copy sandbox? We have a partial copy sandbox that we're using for development and testing.  This is really helpful as some of our applications internally store Salesforce id's.  However, there is a limitation with the partial copy as it only brings in 10,000 records per object from the production environment.  Unfortunately some of the id's we internally store are not being brought down into our partial copy which causes errors.  The 10,000 records that it did copy over aren't needed; I realistically only need 1 or 2.  Is there any way I can achieve copying over a specific record from the production environment? I am trying to learn data in higher space into lower space. To have a clue, I'd like to know how to transform the data in the image below into a lower dimension preserving the structure. Hope to hear some explanations and what should I study to learn mapping data to lower dimension? Why is $1$ not a prime number? Comparing two java.util.Dates to see if they are in the same day Let $x_1 = 2$, and define $$x_{n+1} = \frac{1}{2} \left(x_n + \frac{2}{x_n}\right).$$ Show that $x_n^2$ is always greater than or equal to $2$, and then use this to prove that $x_n − x_{n+1} ≥ 0$. Conclude that $\lim x_n = \sqrt2$.   My question:  So I know how to do this problem but I don't know how to prove that $x_n &gt;0$ for all $n\in \mathbb{N}$. Shouldn't the badge requirements scale? Many badges have fixed requirements, such as:   Answer score of 100 or more   However different websites means a different level of difficulty: the more active users a website has, the easier the badge is to get.  On a new and/or low-view website getting this badge may be impossible for several months; on a website like stack overflow now you can obtain it in a day, and it's relatively easy (compared to other SE sites).  Do you think it would be a good idea to implement a formula that allows the required score to scale? The more active users voting, the more votes are required to get it?  If yes how would you handle people who got it for a post that no longer meets the requirements? Plotting a 3d surface in tikz, with a limit to the infinity Close and flag links do nothing on mobile site This morning (it's about six AM here) I find that I can no longer submit close votes; the link just jumps to the beginning of the page.  I'm on iOS, using a third-party browser called Grazing, but a brief check with Mobile Safari shows the same problem there.   Here on Meta, where my score is much lower, I only get a "delete" link on my own question, and that works fine. (Oops :-))   Update: As per comments, this affects the "flag" link, too, which doesn't even scroll to the top of the page. Update 2: Latest comment suggests this affects Android, too. Update 3: This also affects desktop computers when viewing mobile (when you click "mobile" in the footer) Update 4:  mentions Windows 8, too; simply deleting platform-specific tags Where did the age go on the network profile? Ever since the profile redo, the age was shown in the network profile, but not in the per-site profiles. So if someone wanted to see the age, they had to go to the network profile. However.. It's vanished! The field is still there in the profile editing, however. It doesn't appear as if this was implemented:   So... Where is it? Why isn’t the definite article used in "The commission commanded that work [...] should cease"? In this sentence:     The commission commanded that work on the building should cease.   Why isn't the used before the word work? It seems that the work is specified by on the building.  Another example is,     Construction of the building will start next week.   I understand construction here is something like putting up the building, and so the construction isn’t general in meaning. But the definite article isn’t used here, either.  I’ve asked about this several times, but none gave me a good answer. How to find bases for a subspace defined by an equation I don't understand why su - is preferred over su to login as root. Why are we in love "with" someone? Multiple Image in Canvas ItemsControl Why isn't dark matter just ordinary matter? There's more gravitational force in our galaxy (and others) than can be explained by counting stars made of ordinary matter. So why not lots of dark planetary systems (i.e., without stars) made of ordinary matter? Why must we assume some undiscovered and unexplained form of matter? How to completely disable Siri on Sierra? Is there a software in Ubuntu that can analyse the cross references (theorems, lemmas, equations, etc.) in a tex project? There are some software to analyse the cross references among codes (Java or C++). I used to use a software for code analysis under Windows many years before. But I can't remember the name. On linux, an example might be LXR Cross Referencer.   Is there a similar tool that can analyse the latex files to find out the cross references of theorems, lemmas, propositions and equations?