Getter-Setter and private variables
Why use getters and setters/accessors?
Well, I'm trying to find the Thevenin equivalent of this circuit:    As you can see, the only current source is a dependent source. However, the control variable is in a wire where, if nothing is connected between A and B, is \$i_\Delta = 0\$ A, and that makes the source 0 A. However, if I connect an impedance \$Z\$ to the circuit, I will have current, and a Thevenin equivalent. I don't know how to solve this problem. I've bee searching here for a while, and I found this:   . I can see how is solved that case. However, I still don't know how to apply that method to my circuit.  Any help about finding the Thevenin equivalent is appreciated n.n I think this is just something I've grown used to but can't remember any proof.  When differentiating and integrating with trigonometric functions, we require angles to be taken in radians. Why does it work then and only then? File changed listener in Java I'd like to be notified when a file has been changed in the file system. I have found nothing but a thread that polls the lastModified File property and clearly this solution is not optimal. We have a restricted Windows 7 computer that hides and prevents non-admin users from accessing the C Drive using the following policies:       However, they are able to circumvent this by typing the following into Explorer: \\localhost\C$  How can I disable this path but allow other UNC paths. For example they are allowed to access a shared folder on a different computer. eg. \\192.168.2.1\SharedTransfer  Note: Simply Enabling the Group Policy: Remove Run menu from Start Menu will not work as this blocks all UNC paths.  Update  The user, called Site User, is not a member of the Administrator group directly or indirectly. It is only a member of the group Users.  Accessed the following from: Control Panel\All Control Panel Items\Administrative Tools\Computer Management (Local) &gt; System Tools &gt; Local Users and Groups   Local Users and Groups  - Groups       - Administators              - Administrator              - Service User (our admin user)       - Users              - NT AUTHORITY\Auntenticated Users (S-1-5-11)              - NT AUTHORITY\INTERACTIVE (S-1-5-4)              - Site User (user account in question) It would be nice to see what users have recently been active. This is somewhat standard with many forum-style websites, showing how active the site has been in the last n-minutes or so. As a functional advantage, this also serves to let you know when is a good time to get a question in. When ever I save a gedit file in a directory, two copies of it get saved with identical content. Ex: If the gedit file is named as file_name and saved in Home directory then when u ls the Home directory you get file_name and file_name~ in the list. When the file command is run against them I get ASCII text, with very long lines for both of them when I view their contents using the less command they seem to largely contain identical content. The ~ file is a copy of the file when it was saved for the penultimate time. Can someone please help me in understanding as to why such a file (the file with a trailing ~ mark in its name ) is created? Check tag classes with watir? Why isn't my Minecraft LAN server working? My LAN server won't let my cousin join me or me join my cousin. It won't show up on the multiplayer screen - it keeps saying "scanning for LAN servers" but it never finds it. I am at his house and we use different computers but it won't connect. How can I fix this? Table cells larger than they are meant to be I've created a map system for a game that runs on the principle of drawing the picture of the map from tiles. There are many reasons for this which I won't go into here but if you really want to know then I'm sure you can find out how to contact me ;)  I have  so you can see exactly where the problem lies and the source. The issue is the line between the top 2 tiles and the bottom 2 tiles, I can't figure out why it's gone like this and any help would be appreciated.  In the source is a marker called "stackoverflow", if you search for "stackoverflow" when viewing source then it should take you to the table in question.  I have also uploaded an . Can you wait to add optional damage dice that apply on a hit (such as Divine Smite) until after seeing if the roll is a critical? Example images in LaTeX? How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could , but I tried - and are obviously too stupid to find anything.  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman, danish]{babel} \usepackage[T1]{fontenc} %\usepackage[]{}  \begin{document}  \iffalse \begin{figure} \includegraphics[scale=1]{•}  \end{figure} \fi  \end{document}   Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?  Kind regards! So I have seen the similar question and answers on here for $x^4 +1$, but I am having trouble extending anything there to this polynomial... I understand it is fairly trivial with Galois theory, but my class has just barely covered Field Extensions, so suffice it to say we have no Galois theory to play with.  I managed to prove it for the primes such that $p \equiv 1, 7 \pmod 8$, by noting that $2$ is a square modulo those primes and thus $x^4 - 2x^2 +1 = (x^2 -1 + 2qx)(x^2 - 1 - 2qx)$ for those $\mathbb{Z}_p$... however, trying to get a similar result for $3 \pmod 8$ and $5 \pmod 8$ has been stumping me for a long time, I am having a hard time making $q^2 = -1$ and $q^2 = -2$ give me something factorable...  I guess the worst part of all of this is that I don't think this solution is even particularly enlightening, in terms of abstract algebra. It's really just some number theory trickery. I don't think my course has prepared me theoretically for this problem, does anyone have an elementary approach to it? Convergence of the arithmetic mean Let $(a_n)_{n \in \mathbb{N}}$ be a convergent sequence with limit $a \in \mathbb{R}$. Show that the arithmetic mean given by: $$s_n:= \frac{1}{n}\sum_{i=1}^n a_i \tag{A.M.} $$ also converges to $a$.  I have read:  but unfortunately the answers there don't help me much because I don't understand their substitutions and most of it all, why their substitutions seem to work.   What I know from the problem is that since $a_n$ is convergent and $\epsilon &gt;0$ is given, I can say that:   $$\exists N_1 \in \mathbb{N}, \forall n \geq N_1: |a_n-a|&lt;\epsilon_1 $$ I also know that since $a_n$ is convergent, it is bound, so $(a_n) &lt; M, \ \forall n \in \mathbb{N}$   I need to show that: $$\exists N_2 \in \mathbb{N}, \forall n \geq N_2: |s_n-a|&lt; \epsilon_2$$ I started as follows: $$ \left|s_n-a \right| = \left|\frac{1}{n}\sum_{i=1}^na_i -a\right|= \left|\frac{1}{n}\sum_{i=1}^m(a_i-a)+\frac{1}{n}\sum_{i=m+1}^n(a_i-a) \right| \\ \leq \frac{1}{n} \sum_{i=1}^m|(a_i-a)|+\frac{1}{n}\sum_{i=m+1}^n|a_i-a|$$ I believe to understand that the left sum after the $\leq$ is finite, bound and doesn't depend on the values that $n$ takes on. However, I don't understand where all the substitutions come from and make this proof so seemingly easy to complete.   Is there a general idea I can follow to complete such proofs? Because I know that the last step is to show that the given sum is smaller than $\epsilon$. I also know that I should bring the condition $a_n &lt; M$ into place somewhere, but I don't know where.  If I choose an $n \geq N: |a_n-a|&lt; \epsilon'$ what does that tell me about $|a_i-a|$? I know that they are seemingly the same just with a different index. Consider this reverse biased diode :     I read that no or very small current flows in reverse biased diode as depletion layers get widened and huge resistance is offered so no electrons can cross it. But, why the electrons or holes need to cross the depletion layer? In the diagram above, the positive charges (holes) are moving towards left and the current due to electrons is also in left, so won't the circuit be completed? How to delete an element from an array in C# Lets say I have this array,  int[] numbers = {1, 3, 4, 9, 2};   How can I delete an element by "name"? , lets say number 4?  Even ArrayList didn't help to delete?  string strNumbers = " 1, 3, 4, 9, 2"; ArrayList numbers = new ArrayList(strNumbers.Split(new char[] { ',' })); numbers.RemoveAt(numbers.IndexOf(4)); foreach (var n in numbers) {     Response.Write(n); } Why is it safe to use 15 A receptacles on a 20 A circuit? In Windows you have a C-drive. Everything labeled beyond that is with the following letter.   So your second drive is D, your DVD is E and if you put in a USB stick it becomes F and the following drive G. And so on and so forth.  But then, what and where are A and B-drives? Backquote in lsblk output What does ` mean in this output from lsblk? Compare two objects in Java with possible null values How can I get the values of the parameters of a calling method? Question  I'm writing some code that needs to be able to get the values of the parameters from the method that called into the class. I know how to get all the way to the ParameterInfo[] array, but I don't know how to then get the values. Is this even possible?  If it is, I think it has something to do with using the MethodBody property from the MethodInfo object, which allows you to inspect the IL stream, including properties, but I don't know how to do it, and I haven't found applicable code on Google.  Code  // Finds calling method from class that called into this one public class SomeClass {     public static void FindMethod()     {         for (int i = 1; i &lt; frameCount; i++)         {             var frame = new StackFrame(i);             var methodInfo = frame.GetMethod();             if (methodInfo.DeclaringType != this.GetType())             {                 string methodName = frame.GetMethod().Name;                 var paramInfos = methodInfo.GetParameters();                  // Now what?? How do I get the values from the paramInfos                  break;             }             else if (i == frameCount - 1)             {                 throw new TransportException("Couldn't find method name");             }         }     } }