I thought the Reset() method repopulates the Settings with default values again, but it seems not to. How can I reload them with the default values?    private void buttonLoadDefaultSettings_Click(object sender, EventArgs e)   {    FooSettings.Default.Reset();     // Data grid will show an empty grid after call to reset.    DataGridFoo.Rows.Clear();    foreach (SettingsPropertyValue spv in FooSettings.Default.PropertyValues)    {     DataGridFoo.Rows.Add(spv.Name, spv.PropertyValue);    }   }   Update  private void buttonLoadDefaultSettings_Click(object sender, EventArgs e)   {    foreach (SettingsProperty sp in FooSettings.Default.Properties)    {     FooSettings.Default[sp.Name.ToString()] = sp.DefaultValue;    }     DataGridFoo.Rows.Clear();    foreach (SettingsPropertyValue spv in FooSettings.Default.PropertyValues)    {     DataGridFoo.Rows.Add(spv.Name, spv.PropertyValue);    }   }   Removed the call to Reset() and set the property values manually to the default stored ones. I'm still eager to hear if this is the way it's supposed to be used or am I missing something?
Assuming there are 5 items in the settings file (MySetting1 to MySetting5), why does PropertyValues have 0 items while Properties has the correct number?   Console.WriteLine( Properties.Settings.Default.PropertyValues.Count); // Displays 0 Console.WriteLine( Properties.Settings.Default.Properties.Count);     // Displays 5
What is the proper usage of "not only... but also"? I'm trying to figure out how to use "not only... but also" properly. Basically, my goal is to combine two clauses by using "not only".  For negations, I've figured out two styles that both sound correct:   He knew that if he fractures his finger, not only would he not be able to compete in the water polo tournament, he would not be able to take the SAT on Monday, either. He knew that if he fractures his finger, neither would he be able to compete in the water polo tournament, nor would he be able to take the SAT on Monday.   However, I don't know how to form a sentence that does not include a negation while using "not only". Here are a few possibilities that I've considered:   Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, but he was also given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, but he was given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, he was given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, he was also given a full scholarship.   In those four possibilities, I'm varying the usage of "but" and "also" in the last clause.  What is the proper usage of "not only"? When is the graph of the divisor relation on $[n]$ planar? A recently-deleted question asked to show that if $G(n)$ is the graph on $[n]=\{1,\dots,n\}$ where $x$ and $y$ are adjacent if $x|y$ or $y|x$, then $G(n)$ is planar.  This is false if $n\geq150$, for the subgraph induced by $\{2,3,5,90,120,150\}$ is isomorphic to $K_{3,3}$.  My question is, what is the largest value of $n$ such that $G(n)$ is planar?  Of course, various software packages would make short work of this, but I'd be interested in a verbal argument, if someone can give one. Ridiculous error on all google play store Using CM 10.1.3 How do I convert a string to a byte[] in .NET (C#) without manually specifying a specific encoding?  I'm going to encrypt the string. I can encrypt it without converting, but I'd still like to know why encoding comes to play here.  Also, why should encoding even be taken into consideration? Can't I simply get what bytes the string has been stored in? Why is there a dependency on character encodings? How do I change the default wifi network that Ubuntu connects to on startup? There is an unsecured public wifi network in my range, as well as my own home WPA secured wifi that I want to use by default. However, on startup Ubuntu always connects to the unsecured one. Sometimes I forget to reconnect to the other one, which is very dangerous.   I am running a default setup of Ubuntu Destkop 11.10 with Gnome 3. I have looked under network settings but I can't find a 'default' option. Are the PUT, DELETE, HEAD, etc methods available in most web browsers? I've seen a couple questions around here like , which mentions:     Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.   I've also heard that browsers support only GET and POST, from some other sources like:        However, a few quick tests in Firefox show that sending PUT and DELETE requests works as expected -- the XMLHttpRequest completes successfully, and the request shows up in the server logs with the right method. Is there some aspect to this I'm missing, such as cross-browser compatibility or non-obvious limitations? What is object slicing? Someone mentioned it in the IRC as the slicing problem. How did humans and vulcans communicate in Star Trek: First Contact? What was the point of testing carbonite-freezing technology on Han Solo? Darth Vader tested carbonite-freezing technology on Han Solo because he didn't want to kill Luke who was precious to the emperor. But, why was it necessary? Wasn't it already a tested and proven technology? Even Darth Vader (when he was Anakin) himself used it along with others decades ago (Star Wars: The Clone Wars S03E18). Automatically put PGFPlots xtick scale label in x axis label Determine if $.ajax error is a timeout An exercise of Rudin's Real and Complex Analysis says:     Is it true that every compact subset of $\mathbf{R}^1$ is the support of a continuous function? If not, can you describe the class of all compact sets in $\mathbf{R}^1$ which are supports of continuous functions? Is your description valid in other topological spaces?   I proved that, in every metric space, a set (not necessarily compact) $A$ is the support of a continuous function if and only if it is the closure of an open set.  However, I don't think that this characterization holds for every topological space.  So, in order to find a counter-example, I tried to use the discrete and the trivial topologies. However, the discrete topology is metrizable and this characterization holds for topological spaces with the trivial topology.  Is this result true for any topological space? If not, what would be a counter-example? I am totally aware a question of similar nature is asked before. But the answer there is not doing any good for me.  I have installed python 2.7.6 in addition to system default 2.7.3. And now my system is screwed up completely. Now I want to remove the 2.7.6 and get back to my system default. update-alternatives command on python is not working!  I have installed the 2.7.6 by downloading source and triggering "config, make, sudo make install" commands.  Please help. Justify text inside itemize environment with beamer class I am trying to evaluate the following sum. Here $x\in\mathbb{R^{+}}$. $$f(x)=\sum_{n=1}^{\infty}\frac{(n-1)!}{\prod_{r=1}^{n}(x+r)}$$ At present I do not know how to proceed. Any hints are appreciated. Thanks. GroupBy a list of associations with their keys Divisibility is transitive: $\ a\mid b\mid c\,\Rightarrow\ a\mid c$ As the title says, if a number is divisible by a number, is it always divisible by that number's factors?  An example being that $100$ is divisible by $20$, it is also divisible by $10, 5, 4, 2$ as well?  Does this always apply? Uniform Scattering with vector I'm trying to fill empty space in my mesh, and I looked at the knife tool page on the Blender Wiki, and I'm not sure if there's a way to make it so that a new edge is made using the knife tool. I took a screenshot, and hopefully it'll explain better than I can of what I'm trying to do. Oh and I'm using Blender version 2.71, by the way. Is GNOME Terminal a type of non-login shell?