What should I ignore in a C# project when I am using git?
.gitignore for Visual Studio Projects and Solutions
Trying to remember a short story (most likely from the sixties).  It starts with a soldier at the front line fighting an unknown enemy on the other side of the front line.  He then gets withdrawn and you realise that time is passing slower the further he moves from the front. He then spends years in peace away from the front, before being sent back to the front where only a short time (hours or days perhaps) have passed.      I seem to remember their was an inference that they were actually fighting against themselves, with their attacks coming back at themselves, which was perhaps the entire cause of the war, and an interesting critique on war.  I can't remember if this all this was stated explicitly, or just left for the reader to infer. Spice containers purchase  I'm planning on upgrading my spice storage. Reading some advice online (e.g. , and ) I came to the conclusion that spice containers should:   Not be exposed to direct sunlight and high temperatures Be airtight   Which means that either you store it inside of some closed cupboard/wardrobe/room or you have containers which do block light and are in a relatively shady place. And the containers need to be airtight.  Available solutions  I've been browsing for some containers available online in my country and the 2 most sensible options I've seen are these:       The problem  The first one is hermetic (it has some rubber around the lid) but it's clear glass. The other one does not have the rubber, just a regular twist-off lid, but it's amber glass.  It'll be hard for me to find any space inside of cupboards to store all of my spices (I need at least 30), so I'd rather buy amber glass container, which I believe will effectively block the sunlight, even when kept on the counter. But I can't find any hermetic amber-glass containers, only ones with regular lid.  The question  Is that regular twist-off lid enough to keep spices airtight and fresh? Or should I focus on buying a hermetic container (like the one in clear glass). I could then for example paint them black to block the sunlight. Assuming I have an ArrayList  ArrayList&lt;MyClass&gt; myList;   And I want to call toArray, is there a performance reason to use  MyClass[] arr = myList.toArray(new MyClass[myList.size()]);   over  MyClass[] arr = myList.toArray(new MyClass[0]);   ?  I prefer the second style, since it's less verbose, and I assumed that the compiler will make sure the empty array doesn't really get created, but I've been wondering if that's true.  Of course, in 99% of the cases it doesn't make a difference one way or the other, but I'd like to keep a consistent style between my normal code and my optimized inner loops... Transferring Lyx Keyboard Shortcuts I recently updated my version of Lyx from 1.6.7 to 2.0.6. I would like to transfer my old keyboard shortcuts to this new version, but I am having difficulty because I was inconsistent with the way that I set them up:   Some were defined in the specified .bind file,  but others were modified in the lyx preferences menu.   I found that when importing my old .bind file into this updated version of lyx, it imported the keyboard shortcuts that were in the .bind file, but not those that I had added in the preferences menu.  Does anyone know if these keyboard shortcuts that were added via the preferences menu are stored in another .bind file somewhere in the lyx directory? Has anyone else successfully transferred keyboard shortcuts that had been implimented in the preferences menu? Biblatex handling of Dutch "van" prefix This question has been posed in many different variants, but not exactly as I ask here, so please do not consider this as a duplicate.  I use biblatex with the option useprefix. I would like to have the following automatic behavior:   Name prefixes are rendered before the last name in the bibliography, but always in lower case. The name prefixes are ignored for the sake of sorting of the bibliography. In running text, the name prefix is rendered with a capital letter at the beginning of a sentence, and lower case elsewhere (possible using \Textcite vs. \textcite).   To achieve this, I can have three author fields for each concerned entry, with the following scheme:  author = { {v}an Dijk, A.} shortauthor = { van Dijk, A.} sortname = {Dijk, A. van}   Is there a simple way to automate this? Ideally, such a way could also allow for easy changing of the system. Unwanted faint lines connecting dashed double line I'm looking to schedule 16 players to play a round robin tournament with each other such that there are 4 players at each table.  I'd like for each player to play with each other player exactly once over the course of 5 rounds.  I just took a look at this post:  , and I was wondering if anyone knows if the case n=m=4 has been solved, and if so what that solution is. birthday problem - expected number of collisions There are many descriptions of the "birthday problem" on this site — the problem of finding the probability that in a group of $n$ people there will be any (= at least 2) sharing a birthday.  I am wondering how to find instead the expected number of people sharing a birthday in a group of $n$ people. I remember that expectation means the weighted sum of the probabilities of each outcome:  $$E[X]=\sum_{i=0}^{n-1}x_ip_i$$  And here $x$ must mean the number of collisions involving $i+1$ people, which is $n\choose i$. All $n$ people born on different days means no collisions, $i=0$; two people born on the same day means $n$ collisions, $i=1$; all $n$ people born on the same day means $n$ collisions, $i=n-1$.  Since the probabilities of three or more people with the same birthday are vanishingly small compared to two people with the same birthday, and decreases faster than $x$ increases, is it correct to say that this expectation can be approximated by  $$E[X]\approx {n\choose 0}p_{no\ collisions}+{n\choose 1}p_{one\ collision}$$  This doesn't look right to me and I'd appreciate some guidance.    Sorry - edited to change ${n\choose 1}$ to ${n\choose 0}$ in second equation. Sloppy of me. Tools to measure the nonrandomness of database I was working on historical data looking for anomalous patterns that we would not expect to occur at random. I'd like to create a scheme to analyze data and markets to test for statistical significance and consistency over time.  Question : Are there some tools we could use to evaluate the nonrandomness of a database? What do we use usually to say that something is random or not (statistically)? Figure we work with change in some value over time. undelete big files - mission impossible? I've accidentaly deleted outlook.pst (6.7GB) file, while there was only 400MB free space left on primary NTFS partition (winxp).  I've tried several recovery tools to get this file back. "Ontrack Easy Recovery Pro" found 0 pst files (complete scan mode), while "Recover My Files" in sector scan mode found 5 pst's, but 4 of them of sizes from 3 to 28 KB, while the 5th one - 1Gb.  I've managed to succesfuly recover 1Gb pst file, which was 1 year old copy (the one used after the latest windows reinstall).  Now, I'm frustrated and confused   Why 1 year old file was succesfuly recovered if there were only 400MB left on primary partition? Where's 6.7GB file gone? I did some reading (), and it seems that there's almost no probability to retrieve the file I'm looking for, but wait - none of recovery tools i've used found zero-sized pst file, moreover - if due to fragmentation a file might be corrupted - we could use scanpst.exe to fix some errors and survive with 10 or 100 emails missing - whatever. Could you please recommend some more sophisticated recovery tools for this particular task?   Appretiate your help - thanks in advance If Eren Jaeger dies without transfering his titan powers, will both powers transfer to the same child? It's told in the story that if a titan shifter dies without transferring his power, this power will go to an eldian person who just was born. If Eren Jaeger dies without transferring his titan powers, will the attack titan and the founding titan go to different persons?  Note that his is not a duplicate of  as this is not about what happens when a titan shifter dies. But what happens if a titan shifter with 2 powers dies, which is not answered in the answer. We sometimes buy trout from a local breeder who'll get them fresh out of the water for us, and then cook them a few hours later. They taste great, but the flesh tends to fall apart in a way that doesn't happen with fish from the super market. It's often barely even possible to get them out of the pot without them completely coming apart. We tried leaving them in the fridge for a day so they wouldn't be quite as just-killed-an-hour-ago-fresh, but that didn't help.   We usually prepare them by cooking them in simmering (not boiling) water.  Is there some way to prevent this? The limit of a sum $\sum_{k=1}^n \frac{n}{n^2+k^2}$ as $n\rightarrow\infty$ Why does the weighing balance restore when tilted and released I'm talking about a Weighing Balance shown in the figure:    Press &amp; Hold on onside of the horizontal beam and then release it. It makes some oscillations and comes back to equilibrium like shown in the figure.  Both the pans are of equal equal masses. When the horizontal beam is tilted by an angle using external force, the torque due to these pan weights are equal in magnitude &amp; opposite in direction. Then why does it come back to it position? What's making it to come back? Proof Verification: Converse of Intermediate Value Theorem How do you access the matched groups in a JavaScript regular expression? How do I get a block with data to place myself? Add new item in existing array in c#.net How to add new item in existing string array in C#.net?  I need to preserve the existing data. Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ is reducible over $\mathbb{Q}$? We know that $f(x)=x^4+1$ is a .  My question is:     Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ has a linear factor over $\mathbb{Q}$?   Edit: Thanks for @Jyrki Lahtonen's answer, I want to do some modifications:     Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ is reducible over $\mathbb{Q}$?   Thanks in advance! prove that $24 \mid a(a^2-1)$ If $a$ is an odd integer, prove that $24 \mid a(a^2-1)$.  I proved in my class that $a^2=8k+1$ for some $k$, provided $a$ was odd.  So $$a(a^2-1)=(2k-1)(8k+1-1)=8k(2k-1)$$ but I can't pull a $24$ out of it.