Error CS0120 An object reference is required for the nonstatic field, method, or property
CS0120: An object reference is required for the nonstatic field, method, or property 'foo'
How do I return a longitude and latitude from Google Maps JavaScript geocoder? Intuitive reason why the Fisher Information of Binomial is inversely proportional to $p(1-p)$ It confuses/blows my mind that the Binomial has variance proportional to $p(1-p)$. Equivalently, the Fisher information is proportional to $\frac{1}{p(1-p)}$. What is the reason for this? Why is the Fisher Information minimized at $p=0.5$? That is, why is inference most difficult at $p=0.5$?  Context:  I'm working on a sample size calculator, and the formula for $N$, the sample size needed, is an increasing factor of $p(1-p)$, the result of a variance estimation in the derivation. How to enable bullet points when using the presento beamer theme? I have the problem that when I use an itemize list and the , there are no bullet points.  Here is a minimal working example (requires the  not available on CTAN to be downloaded first):  \documentclass{beamer} \usepackage{config/presento} \begin{document} \begin{frame} \begin{itemize} \item ... \item ... \item ... \end{itemize} \end{frame} \end{document}     How to fix this problem? How to choose between learning algorithms I need to implement a program that will classify records into 2 categories (true/false) based on some training data, and I was wondering at which algorithm/methodology I should be looking at. There seem to be a lot of them to choose from -- Artificial Neural Network, Genetic Algorithm, Machine Learning, Bayesian Optimization etc. etc., and I wasn't sure where to start. So, my questions is:  How should I choose a learning algorithm I should use for my problem?  If this helps, here is the problem I need to solve.    The training data: The training data consists of many rows like this:    Precursor1, Precursor2, Boolean (true/false)   The run I will be given a bunch of precursors. Then,     I choose an algorithm A from different algorithms (or dynamically generate an algorithm), and apply it on every possible combinations of these precursors and collect the "record"s  that are emitted. The "record" consists of several key-value pairs*. I apply some awesome algorithm and classify these records in to 2 categories (true/false). I will generate a table that has the same format as the train data: Precursor1, Precursor2, Boolean   And the whole program is scored based on how many true/false I got right.  *:"Record"s will look like this (hope this makes sense)  Record         [1...*] Score -Precursor1             -Key -Precursor2             -Value   There are only a finite number of possible Keys. Records contain different subset of these keys (some records have key1, key2, key3... other records have key3, key4... etc.).  I actually need 2 learning. One is for step 1. I need to have a module that looks at the Precursor pairs etc. and decide what algorithm to apply in order to emit a record for the comparison. Another is for step 2. I need a module that analyzes the collection of records and categorize them into the 2 categories (true/false).    Thank you in advance! Is it because Rey just saved BB-8 from a net, and then the droid just decides to follow her about - or is it for some other reason?  Does BB-8 have any idea who Rey is prior to being rescued by her?  Just wondering as she literally tells the droid to go elsewhere. Was the singularity at Big Bang perfectly uniform and if so, why did the universe lose its uniformity? Hash join between master/detail tables produces too-low cardinality estimate Possibly two questions in here: Are these sentence constructions logical, and if they are, why are they different?     I swam across the Ocmulgee River.   I swam across the Pacific Ocean.   I swam across the Red Sea.   I swam across Lake Winnipeg.   I can't think of a way of phrasing the lake example while using an article with a proper noun. I thought at first it was because Lake Winnipeg is different; it's generic portion (the "Lake") comes first and the name of that body comes second, but I swam across Falls Lake is the same.   Yet the sentence I swam across the lake sounds right to me. ...Why? `du -sh` reports different used size than `df -h` Possible Duplicates:             df -h says that I have 494G used on /var:  Filesystem            Size  Used Avail Use% Mounted on /dev/sda3             564G  494G   41G  93% /var   But du -sh /var says it's 350G  What makes them different? Newline in a WPF-label? How can I add a newline in the text of a label in WPF such as the following?  &lt;Label&gt;Lorem    ipsum&lt;/Label&gt; How to search questions with only one specific tag? I can search question with target using [target] but the result questions also include question tagged with other tags.   How to get the question with only one specific tag? What are bitwise shift (bit-shift) operators and how do they work? I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators) ...   What I'm wondering is, at a core level, what does bit-shifting (&lt;&lt;, &gt;&gt;, &gt;&gt;&gt;) do, what problems can it help solve, and what gotchas lurk around the bend? In other words, an absolute beginner's guide to bit shifting in all its goodness. trigger AccountReplicate on Account (after delete, after insert, after update) {     if ( trigger.isInsert ) {         for ( Account acc : trigger.new ) {             AccountOne__c ac = new AccountOne__c();             ac.Fax__c = acc.Fax;             ac.Phone__c = acc.Phone;             ac.Name =acc.Name;             insert ac;         }     }      if ( trigger.isUpdate ) {         integer  i = 0;         list&lt;AccountOne__c&gt; a2 = new list&lt;AccountOne__c&gt;([SELECT Id                                                         FROM AccountOne__c                                                         WHERE Name =: trigger.old[i].Name ]);         for ( AccountOne__c c1 : a2 ) {             c1.Name = trigger.new[i].name;             c1.Fax__C = trigger.new[i].Fax;             c1.Phone__C = trigger.new[i].Phone;             i++;         }         update a2;     } }   I tried bulk trigger for the update operation, but it's not working can anyone help me? Capturing console output from a .NET application (C#) How do I invoke a console application from my .NET application and capture all the output generated in the console?   (Remember, I don't want to save the information first in a file and then relist as I would love to receive it as live.) I am reading George Gamow's book  and a certain assertion Gamow makes seems a little startling considering what I already know of the subject of infinite cardinality.     But the number of all geometrical points, though larger than the number of integer and fractional numbers, is not the largest one known to mathematicians. In fact it was found the variety of all possible curves, including those of the most unusual shapes, has a larger membership than the collection of all geometric points, and thus has to be described by the third number in the infinite sequence. [Gamow, 22]   He later does explicitly say the number of all possible curves is $\aleph_2$. But nowhere else can I find reference to this being true, nor does he provide any sort of reasoning to its validity.  My question is how can you prove the set of all possible curves is of cardinality $\aleph_2$ and not $\aleph_1$ or $\aleph_0$? A field that is conservative must have a curl of zero everywhere. However, I was wondering whether the opposite holds for functions continuous everywhere: if the curl is zero, is the field conservative? Can someone please give me an intuitive explanation and insight into this, and if it is true, why? Also, please try to not be too rigorous (only in grade 9). Better extensible arrows I have a bash script that makes a cURL request and writes the output to a file called resp.txt.  I need to create an exclusive lock so that I can write to that file and not worry about multiple users running the script and editing the text file at the same time. Here is the code that I expect to lock the file, perform the request, and write to the text file: ( flock -e 200 curl 'someurl' -H 'someHeader' &gt; resp.txt ) 200&gt;/home/user/ITS/resp.txt  Is this the correct way to go about this?  My actual script is a bit longer than this, but it seems to break when I add the flock syntax to the bash script. If someone could explain how these file descriptors work and let me know if I am locking the file correctly that would be awesome! How to print variables without spaces between values How to create a .deb file with dependency? I have a game made with the LÖVE framework and I want to package it into a .deb file so it can be easily installed by others and be easily findable through the Unity dash for example.   I also have the LÖVE framework love_0.7.2.deb which I want to be in the deb file also somehow.  Files that I have:  game_icon.png game .desktop the_game.love love_0.7.2.deb   Could someone explain to me how to do this?