Let's assume, we have following class:  public class foo  {     private string something     public string Something     {         get { return something; }         set { something = value; }     } }   If we don't need to use field something, we can write it shortly, as:  public class foo {     public string Something { get; set; } }   It's OK.  But is there a way to short-write following class:?  public class foo  {     private List&lt;string&gt; something = new List&lt;string&gt;()     public List&lt;string&gt; Something     {         get { return something; }         set { something = value; }     } }   EDIT:  OK, found    And since c# 6 we can write:  public List&lt;string&gt; Something { get; set; } = new List&lt;string&gt;();   Thanks for attention.
How do you give a C# auto-property an initial value?  I either use the constructor, or revert to the old syntax.    Using the Constructor:  class Person  {     public Person()     {         Name = "Initial Name";     }     public string Name { get; set; } }   Using normal property syntax  (with an initial value)  private string name = "Initial Name"; public string Name  {     get      {         return name;     }     set     {         name = value;     } }   Is there a better way?
Evaluate $\int_0^{\infty}\frac{\log x}{1+e^x}\,dx$ Occasionally, I get part of an application lingering behind on my desktop:    This is part of a context menu for an application. It is always top-most, meaning that it is always on the screen, and I cannot click on it (it just clicks through it). It has happened before, sometimes with whole windows. It remains on screen even if the application it originated from is no longer running.  How do I get rid of it without rebooting? When should a Test Case be marked as "No Apply"? To find all $n$ such that $(n-1)!+1$ is a perfect power of $n$ Is there a Google Drive client available? Principal component analysis "backwards": how much variance of the data is explained by a given linear combination of the variables? I have carried out a principal components analysis of six variables $A$, $B$, $C$, $D$, $E$ and $F$. If I understand correctly, unrotated PC1 tells me what linear combination of these variables describes/explains the most variance in the data and PC2 tells me what linear combination of these variables describes the next most variance in the data and so on.   I'm just curious -- is there any way of doing this "backwards"? Let's say I choose some linear combination of these variables -- e.g. $A+2B+5C$, could I work out how much variance in the data this describes? Please rate and comment. I want to improve; constructive criticism is highly appreciated. Please take style into account as well.  The following proof is solely based on vector space related axioms. Axiom names are italicised. They are defined in Wikipedia (see vector space article).  Vector spaces - Multiplying by zero scalar yields zero vector  \begin{array}{lrll} \text{Let} &amp; \dots &amp; \text{be} &amp; \dots \\ \hline &amp; F &amp;&amp; \text{a field.} \\ &amp; V &amp;&amp; \text{a vector space over $F$.} \\ &amp; 0 &amp;&amp; \text{an identity element of addition of $F$.} \\ &amp; \mathbf{0} &amp;&amp; \text{an identity element of addition of $V$.} \\ &amp; \mathbf{v} &amp;&amp; \text{an arbitrary vector in $V$.} \\ \end{array}  $$\text{Then, }0\mathbf{v} = \mathbf{0}.$$  Proof. We will denote by $1$ an identity element of scalar multiplication; we will denote by $(-\mathbf{v})$ an additive inverse of $\mathbf{v}$. \begin{align*} 0\mathbf{v} &amp;= 0\mathbf{v} + \mathbf{0}                     &amp;&amp; \text{by }\textit{Identity element of vector addition} \\ &amp;= 0\mathbf{v} + (\mathbf{v} + (-\mathbf{v}))   &amp;&amp; \text{by }\textit{Inverse elements of vector addition} \\ &amp;= (0\mathbf{v} + \mathbf{v}) + (-\mathbf{v})   &amp;&amp; \text{by }\textit{Associativity of vector addition} \\ &amp;= (0\mathbf{v} + 1\mathbf{v}) + (-\mathbf{v})  &amp;&amp; \text{by }\textit{Identity element of scalar multiplication} \\ &amp;= ((0 + 1)\mathbf{v}) + (-\mathbf{v})          &amp;&amp; \text{by }\textit{Distributivity of scalar multiplication (field addition)} \\ &amp;= ((1 + 0)\mathbf{v}) + (-\mathbf{v})          &amp;&amp; \text{by }\textit{Commutativity of field addition} \\ &amp;= (1\mathbf{v}) + (-\mathbf{v})                &amp;&amp; \text{by }\textit{Identity element of field addition} \\ &amp;= \mathbf{v} + (-\mathbf{v})                   &amp;&amp; \text{by }\textit{Identity element of scalar multiplication} \\ &amp;= \mathbf{0}                                   &amp;&amp; \text{by }\textit{Inverse elements of vector addition} \\ \end{align*} QED Security importance of Key Schedule in Block Cipher How can black hole increase its mass? $x,y,z \in \mathbb R$ My attempt: Notice that if $x^2 + y^2 + z^2 \geq xyz$ and $x+y+z \geq xyz$. So : $$x^2 + y^2 + z^2 \geq x+y+z $$ But this is actually not always true, take the case when $ 0&lt;x,y,z &lt;1$ And you will see that this is not working. Maybe I’m wrong. We know that $$\int_0^\infty \left(\frac{\sin x}{x}\right)^2 dx=\int_0^\infty \frac{\sin x}{x} \, dx=\frac{\pi}{2}.$$ How do I show that $$\int_0^\infty \left\vert\frac{\sin x}{x} \right\vert \, dx$$ converges? PhD in Europe without scholarship from non-European homeland I earned my bachelors in Computer Engineering from my home country. I am now enrolled in a Physics masters program in the same university. Next year I plan to find a different university in Europe in which to enroll in a Computer Engineering PhD program.  However I doubt that I'll receive any scholarships from my homeland's government when studying abroad. Can I survive if I start to live out of my own my pocket? Is that enough to live in Europe just for a half year. Are there any available funds that can supplement my income such as a TA/RA's salary?  My main question is:   How to survive if I want to study PhD in Europe without any scholarship from my home country? Which country might provide sufficient support for a foreigner to study at graduate level?   I am interested to Germany and Finland but any European country would be acceptable! Why don't we define "imaginary" numbers for every "impossibility"? Difference between StringBuilder and StringBuffer Is it possible to paint only inside a stroke on illustrator? what i actually want to do is paint the same stroke with different colors in diferent segments of it but i can't do it...   Also... I've seen some tutorials that include editing a gradient but that would be very complicated and so would be to make a new stroke over this one, I just hope theres an easyer way XD  Edit per comment:  thats cool but not really what im looking for, what i want is lets say my stroke has the shape of a burger i want part of i to be bread color and part of it to be meat color... not one stroke over the other... i want something like this, imagine the jelly worm is my stroke: I've come across quite a few answers that request the asker to, for example: "send the user an email", after which the answerer will provide them with the code or other resources they're looking for.  A few examples:          Should we take action against these questions?  I feel like these answers aren't appropriate (see my answer below).  Update:  Perhaps there are some cases where this is acceptable. I've seen a few questions regarding a particular piece of commercial software where the author/developer of the software answers, telling the asker to contact either them or their organization's in-house support.  I'm on the fence about this case. If I came across a question here describing a similar problem I was having, it would be useful to me to have the support information and know that I could contact it for assistance.  I'm interested in others' opinions on this situation in particular. Is there an (easy) way to create or personalize .bst files? How to connect to Office Online Server in Office365 I just wondering if we can use existing Office Online Server in Office365 for SP2013 on premise. If yes, how this can be achieve?   In SP2013 we normally run Get-SPWOPIBinding to find out the server binding and to connect to Office web App we normally run  New-SPWOPIBinding -ServerName. Is this the same command if I want to connect to the existing new Office Online Server in Office365?  Thanks Renaming hundreds of files at once for proper sorting I have a ton of files, all named stuff like 1.jpg, 2.jpg, 3.jpg, and so on up to 1439.jpg, however, I have a problem with one of my projects and alphabetizing. It will usually go in the order 1.jpg, 10.jpg, 11.jpg and so on.  What I need is some way to name the files so they are in the format such as 00001.jpg all the way up to 01439.jpg.  How would I be able to do this quickly and efficiently? Appendix without letter in TOC