First i'll give you a run around my code, I have a class that stores some data :  public class Balta     {         public int x;         public int y;         public int raza;         public int cantApa;         public int id;         public int intersect;         public Balta(int xs, int ys, int r, int cApa, int ids, int intersctt)         {             x = xs;             y = ys;             raza = r;             cantApa = cApa;             id = ids;             intersect = intersctt;         }             }   Secondly I have a class that makes a list of that data and stores it acordingly,also i intend to do some operations with that data once i get rid of this pesky error.  public class Baltile     {         public int n;         List&lt;Balta&gt; balti = new List&lt;Balta&gt;();          public void populate(Balta balta)         {             int unitId = balta.id;         if (balti.Any(Balta =&gt; Balta.id == balta.id))         {             int pos = balti.FindIndex(Balta =&gt; Balta.id == balta.id);             balti[pos] = balta;         }         else if (balti.Any(Balta =&gt; Balta.cantApa == -1) &amp;&amp; !balti.Any(Balta =&gt; Balta.id == unitId))          {                                     int pos = balti.FindIndex(Balta =&gt; Balta.cantApa == -1);                 balti[pos] = balta;                                                                      }         else //daca nu inseamna ca aduaugi balta la lista         {             balti.Add(balta);         }         }     }   And main looks something like this    static void Main(string[] args)         {                          Baltile balti = new Baltile();             while (true)             {               "data input block"               for (int i = 0; i &lt; unitCount; i++)               {                "more data input"                    if (i&gt;2)                {                 Balta balta = new Balta(x, y, radius, extra, unitId, 0);                 Baltile.populate(balta);//the CS0120 error is here                }              }            }          }   So CS0120 tells me this An object reference is required for the non-static field, method, or property.This means main is static so i cant call a non static method if i understood right ? Declaring everything static will give even more errors.  How should i go around this ? I cant seem to figure out how to make my code work ?
Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i &gt; 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)
Creating a .desktop file for a new application My prisoners wont move from the holding to cell to the actual cell I have a cell block with 25 cells but none of my prisoners will move there from the holding cell. I have working power and water beds and toilets they are separate from each other it has all the requirements why wont it work? Any ideas? After some searching on stack / google I decided to ask this here, this is the second time I'm facing this issue this time with blender 2.8, previously with 2.7 and without a clue to how I got here.  Some of my objects appear hidden(10/12), and I can't seem to find a way to unhide them.  Solutions to the most common rookie mistakes seems to be   In local-view solved by pressing numpad / hidden by pressing H or Shift + H, unhiding with Alt + H   I'm not in local view, I can toggle visibility for 2/12 objects with Shift + H &amp; Alt + H, but the rest stays gray in the collection.  Last time I solved this by exporting the whole model as STL and importing it back again, I then had to re-group all the pieces but there must be a more simple solution.  Here's the .blend if someone wants to have a go at it: How can I make LightDM the default display manager? I have LightDM installed and can start it with sudo start lightdm. But at boot, GDM is still the default. How can change this so LightDM is loaded automatically at boot instead of GDM? Convergence/Divergence of infinite series $\sum_{n=1}^{\infty} \frac{(\sin n+2)^n}{n3^n}$ $$ \sum_{n=1}^{\infty} \frac{(\sin n+2)^n}{n3^n}$$  Does it converge or diverge?   Can we have a rigorous proof that is not probabilistic?   For reference, this question is supposedly a mix of real analysis and calculus. How do I URL encode a string Arrangements of a,a,a,b,b,b,c,c,c in which no three consecutive letters are the same Q: How many arrangements of a,a,a,b,b,b,c,c,c are there such that  $\hspace{5mm}$ (i). no three consecutive letters are the same?  $\hspace{5mm}$ (ii). no two consecutive letters are the same?  A:(i). 1314. ${\hspace{5mm}}$ (ii). 174.  I thought of using the General Principle of Inclusion and Exclusion along with letting $p_i$ denote a property that.. , and doing so, I will evaluate $E(0)$, which gives us the number of arrangements without any of the properties.   How do I go about doing that? I am trying to use the method stated above in solving this question, but I am unable to generalize the properties $p_i$. terminal won't launch after install python 3.5 After I installed Python 3.5 and ran the commands below, my terminal and many other programs won't launch any more.  cd /usr/bin sudo rm python3 sudo ln -s python3.5 python3    How can I restore the default Python version again to fix these problems? Prove: $\gcd(a,b) = \gcd(a, b + at)$. Transformation issue with SVG to GeoJSON conversion I have a vector image in SVG format. (without georeferences)    I am trying to display it using OpenLayers to display properties of different polygons in it.  I tried converting it to GeoJSON but the resulting render appears to be stretched (ratios are not preserved).  Is there a transformation or a map projection that I am missing or recreating a GeoJSON from scratch the only relevant choice? Ring of fractions of $R$ is integral over $R$ Let $R$ be a commutative ring and let $S\subseteq R$ be a multiplicative closed subset containing 1.     I need to show that if $S^{-1}R$ is integral over $R$, then $S^{-1}R=R$.   I don't see how to get started. How do I insert the total continuation count in the allowframbreaks frame title? I would like to change the numbering of allowframbreaks frame, for instance, from I II III to (1/3) (2/3) (3/3)， but fail to find out a command to get the total continuation count. Here is the MWE.  \documentclass[compress]{beamer} \usetheme{Warsaw}   %allowframebreaks numbering in the title \setbeamertemplate{frametitle continuation}{(\insertcontinuationcount/)} %\setbeamertemplate{frametitle continuation}{(\insertcontinuationcount/\inserttotalcontinuationcount)}  \title{title} \author{author}  %%%%% \begin{document}  \begin{frame}[allowframebreaks]{allowframebreaks title} frame 1 \framebreak  frame 2 \framebreak  frame 3 \framebreak \end{frame}  \end{document} Mac mini Mac OS 10.6 server migration to new hardware I have a Mac Mini with Mac OS X 10.6 Server installed. It has two external drives attached to it. One is for Time Machine and other contains data. I have bought the latest Mac Mini with Mac OS X 10.7 and two new hard drives. I want to migrate to the new hardware (the new Mac Mini and the new hard disks). Can Migration Assistant do that for me or do I have to transfer the data in the external drive manually? Astronauts land on planet, met by aliens impersonating their deceased relatives When I was young, I read a chilling story of astronauts coming to an unknown planet and found to their delight  the occupants were all members of their family who were deceased. Each crew member goes off to their respective childhood homes to relive memories.   One astronaut however in the same bedroom as his brother suddenly wonders if aliens may have searched the memories of himself and fellow crew members and used this to gain power over the intruders. His brother asks suspiciously what he's thinking and doesn't believe the answer. The last scene shows astronauts being buried by aliens whose faces melt from human into something terrifying.   Anyone know the name of the story and author? I thought it might be something like Coming Home, but only a guess. Best practices for storing UI settings? we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g.   Expander States Menu orders Sizing Properties etc...   i don't like the idea of having dozens of stored values using the delivered SettingsProvider (i.e. App.config file) although it can be used to store it in an embedded database using a custom SettingsProvider. being able to use some kind of databinding is also a concern. Has anyone had the same problems?   What did you do to store lots of ui user settings? List of PDOStatement::bindParam data_type parameters Is there a documentclass that produces 'endless' pages? Does anybody know of a documentclass that produces a page that has a fixed width and a variable length, depending on the actual content that needs to fit on the sheet? I'm trying to get something like a kind of scroll if possible. Getting Script Error has occurred in script on this page when running polygon to raster conversion? i keep getting the script error problem every time i try using polygon to raster tool in ArcGIS 10.1. Please help me how I can solve this?  screenshot embedded texstudio: show line numbers in editor How do I show line numbers in the editor? According to the picture in the doc (e.g. about bookmarks) there should appear by default.  I'm using Texstudio version 2.7, win8.1. I am really satisfied that $(x \to a) ≠(x=a)$ and if that is not right , Then all the process of $Limits$ is dividing by zero and that is a crime.  Since $(x \to a) + h = (x=a)$ , $h ≠ 0$,So Why does $f(x \to a) = f(x = a)$ ?  NOTE:I am talking about continuous function.