When I declare a variable in a class like this:  public class Test {     public string x = 0; }   and another like this:  public class Test2 {     public string x {get; set;} }   What is the difference?
In C#, what makes a field different from a property, and when should a field be used instead of a property?
How can I make a .jar file executable? I'm trying to run a jar application under Ubuntu, so I installed OpenJDK Java 7 Runtime, but when I open this application I got this message :     The file '/home/aimad/Programms/jMerise/JMerise.jar' is not marked as   executable.  If this was downloaded or copied from an untrusted   source, it may be dangerous to run.  For more details, read about the   executable bit. "[" as first character in table row Whenever I try to compile a table that has a "[" as first character in a row it gives me the error:  Missing number, treated as zero. Illegal unit of measure   Example:  \begin{table}[htb]     \centering     \begin{tabular}{r|r}         [some text ] &amp; ... \\         [some more text ] &amp; ...     \end{tabular}     \caption{...}     \label{tab:...} \end{table}   How can I print "[" as first character in a row? What can a soldier requisition and for how long? In the military rank feature it says the soldier can "requisition simple equipment or a horse for temporary use". What qualifies as simple equipment, any simple weapon or something less complex than a catapult?  Additionally, which part of the sentence is the "for temporary use referring to, the simple equipment and the horse or just the simple equipment? How did Sauron remain in control of the Nazgûl? The One Ring gave Sauron control of the Nine, yet when it was taken from him he still possessed the power to control them (or, at least he regained it towards the end of the third age).  Why is this?   mentions that he drew the Nine to him, but not how. Is this statement "Every element in the empty set is greater than itself." true or its negation is true? $p$ : Every element in the empty set is greater than itself.  $\neg p$ : Some element in the empty set is smaller than or equals to itself.      I do not have the answers to this exercise, but it came out in my exams. I simply do not understand. There is nothing in an empty set! How can nothing be greater/equals/smaller/ to itself? If I had to choose an answer, it has to be $\neg p$ since nothing is equals to nothing...   What is the answer? What would be a good term for continuous testing post-deployment? I'm thinking of live production sites here, where there is a continuous community or much content being updated, sort of like a newspaper site or community site (the one I work at is a healthcare improvement company) and we have news articles, programs and so on.  While the underlying code is tested and released there are often production issues that come up, maybe certain pages stop working, style sheets suddenly don't appear like they did due to a service patch or some tweak done to improve production security or performance.  There is Acceptance Testing for when a deployment goes out to make sure things work right, Regression Testing to make sure nothing has been broken since previous releases.  Considering we've done these types of tests and things are working fine what would you call testing, or checking, the site to make sure things still work fine?  To be sure new pages are being crawled for search indexing?  To check that newly added pages are using plug-ins correctly?  Or so on.  My manager and I were discussing some issues that have cropped up and decided we needed to do something like this, but then to sort of note it in our status reports we didn't really have a name for it.  Anyone done this and have a term that might be good?  Or would you consider it covered by something like Continuous Acceptance Testing or some such term? I want to change the default location of "Save a screenshot to Pictures" to save it to Desktop.   If that is not possible, is there any other way to do it? I am using Ubuntu GNOME 17.04.  NOTE: I don't want to change the location with dconf-editor as it changes the location of screenshot applet and not of the shortcut I require. The annual student intake of Hogwarts seems about 100. Since in book 7 Hogwarts is declared mandatory for all children, this means that the total magical population of Britain cannot be much more than 10,000.  How do these people make a living?  All jobs mentioned in the books are non-productive occupations (government, stores, sports &amp;c) - not farmers or engineers. There are exceptions - makers of wands/robes/broomsticks - but where do they get the raw materials from?  Who and how "creates goods" in the wizarding world?  Note that if you say "wizards exchange their gold for Muggle money and buy stuff from Muggles (through intermediaries, if necessary)" then you would have to explain where they get their gold: they would either have to mine it, or produce something of value to the Muggles (in which case the separate financial system of galleons/sickles/knuts does not make sense).  PS. A simple issue of maintaining a steam locomotive for Hogwarts express is pretty much insurmountable for 10k people - without Magic, that is. So, I can imagine that the skilled tradesmen can transfigure dirt into raw materials for their trade - except for food, which "is the first of the five Principal Exceptions to Gamp's Law of Elemental Transfiguration". Where were the Avengers during Iron Man 3? How to identify if a webpage is being loaded inside an iframe or directly into the browser window? I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser? How to mass rename files with ill-formed numbering? I've got bunch of files with ill-formed numbering:  prefix-#.ext       | for files with number 1-9 prefix-##.ext      | for files with number 10-99 prefix-###.ext     | for files with number 100-999   Due to further processing I need all of their names to be in format: prefix-###.ext. Is there any easy way to do that? Lots of people would like to visit the EEA area to take holiday or to visit family or even to go for longer term visa arrangements in the Schengen zone.  In order to do this, they need a Schengen (or national) visa.  This appears to be a fairly straightforward process, but hints and tips can always be helpful.  Without focusing on any individual's circumstances, what are some helpful hints that can improve the likelihood of a successful application? I am trying to really understand why the gradient of a function gives the direction of steepest ascent intuitively.  Assuming that the function is differentiable at the point in question, a) I had a look at a few resources online and also looked at this   , a popular question on this stackexchange site. The accepted answer basically says that we multiply the gradient with an arbitrary vector and then say that the product is maximum when the vector points in the same direction as the gradient? This to me really does not answer the question, but it has 31 upvotes so can someone please point out what I am obviously missing?  b) Does the gradient of a function tell us a way to reach the maxima or minima? if yes, then how and which one - maxima or minima or both? Edit: I read the gradient descent algorithm and that answers this part of my question.  c) Since gradient is a feature of the function at some particular point - am I right in assuming that it can only point to the local maxima or minima? Google Chrome will take up my memory to the point where it causes my computer to freeze to a near halt. What can I do to prevent this? It gets so horrible that I can not even switch to TTY1 to force a reboot. I have to hard reset, and I lose work.  Ideally, I would like to be able to use the chrome browser on Ubuntu without having to keep reminding myself to close tabs.   Are there any extensions for Chrome, or tools for Ubuntu that can help prevent me going past the point where Ubuntu eats up all the RAM and becomes incapacitated? Is centripetal acceleration mandatory for circular motion? Can a person residing in Singapore on a 5-month Employment Pass apply for a Schengen visa? Given the following data:  972, 975, 985, 993, 993, 995, 998, 1001, 1004, 1007, 1008, 1009, 1011, 1015, 1016, 1020, 1022, 1032  I calculate the lower quartile as follows:  Number of values: 18, Number of 'gaps': 17.  Lower quartile is at 17/4 + 1 = 5.25th value. 5.25th value is 993 + (995 - 993) x 0.25 = 993.5  Upper quartile is at 3 x 17/4 + 1 = 13.75th value. 13.75th value is 1011 + (1015 - 1011) x 0.75 = 1014  Both the Excel QUARTILE function and the R quantile function agree with me. However the book I am using (Understanding Statistics by Graham Upton and Ian Cook) give different answers (993 and 1015 respectively). I'm confused. Which is correct? I recently dismissed Dogmeat in favor of Codsworth, and I'm fairly sure I sent him to Sanctuary Hills. However, I've had a fairly detailed look around the place and I haven't found him yet. Does anyone know where he is? Difficult Polynomial Question "Your python3 install is corrupted" I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade. After downloading and extracting bionic.tar.gz I get:  Can not upgrade   Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.   I saw  and so I did sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 thinking that it would be a similar problem. But that didn't work (still same error message).  I have a few python versions:  $ ls /usr/lib | grep python python2.7 python3 python3.5 python3.6  $ update-alternatives --display python3 python3 - auto mode   link best version is /usr/bin/python3.6   link currently points to /usr/bin/python3.6   link python3 is /usr/bin/python3 /usr/bin/python3.5 - priority 1 /usr/bin/python3.6 - priority 2   How do I fix python3?