Does anyone know a way to rename the getter and setter of a variable when I change the name of it?  The renaming function in eclipse is very useful, but, when I need to rename some variable, after that I need to manually fix the name of the getter and setter.
Is there any way to automatically rename accessor/mutator when a variable they get/set gets refactored -> renamed (Eclipse 3.4)?
This should be a fairly trivial problem. I'm trying to open an ofstream using a std::string (or std::wstring) and having problems getting this to work without a messy conversion.  std::string path = ".../file.txt";  ofstream output;  output.open(path);   Ideally I don't want to have to convert this by hand or involve c-style char pointers if there's a nicer way of doing this? Is Adzerk safe / legitimate? Compiling the following code and got the error of type illegal.  int main() {     // Compilation error - switch expression of type illegal     switch(std::string("raj"))     {     case"sda":     } }   You cannot use string in either switch or case. Why? Is there any solution that works nicely to support logic similar to switch on strings? Why has a circle when the point light through my glass？ I found there is a circle when the point light through my glass material using the circle render.  How could I solve it? I've tried everything I can think of. Resetting the router, changing the channel number and band.   The internet connection is fine, and then just hangs for a minute or 2, then returns to normal.   The wifi icon remains connected, and I have the latest 10.10.4 update installed. At first I thought it was a DNS bug with Yosemite, and have played with the settings such as changing DNS provider, changing the IPV6 to IPV4 only etc.  Driving me nuts. Has anyone had a similar problem? I've checked the surroundings with wifi scanners and have chosen the best channel available.     One thing I have noticed, it seems a lot more reliable on 5GHz as opposed to 2.4Ghz It seems to affect my Macbook Pro Retina 13in Early 2015 a lot more than the other devices on the network. I'm using a Virginmedia  1. Can we continue to show the "Take a tour" banner after a user has created an account? When would you use a WeakHashMap or a WeakReference? The use of weak references is something that I've never seen an implementation of so I'm trying to figure out what the use case for them is and how the implementation would work. When have you needed to use a WeakHashMap or WeakReference and how was it used? Get lists of dependent picklist options in Apex I have a pair of dependent picklists.  In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field?  I've tried using getPicklistValues(), but there doesn't seem to be any way of getting dependency information.  Example  Controlling_Field__c  Fruit, Vegetable, Dairy  Dependent_Field__c  (Fruit): Apple, Banana, Pear  (Vegetable): Tomato, Egglant, Lettuce  (Dairy): Milk, Cheese, Yogurt  What I'm Looking For  (In pseudocode, something like:)  controllingOptions = dependentfield.getPicklistValues(); for (option : controllingOptions) {     dependentOptions = dependentfield.getPicklistValuesFor(option);     do_something_with_it(); } Why does a subpanel need separate ground and neutral? Why does a power sub panel have to have separate neutral and ground bars other than code satisfaction?  Does a sub panel need a main breaker if there is one at the main?   Also, does the sub panel need a ground wire connected back to the main panel in the same building? How do I run a sudo command needing password input in the background? I have recently disabled  so that it now prompts me for a password every time.  And though this is good for security, it has caused one slight problem which I haven't been able to figure out a solution for, I am unable to run commands which go along the lines of:   sudo &lt;command&gt; &amp;   In the past I would have run a sudo command before that, it would have cached my password and allowed me to run sudo commands without prompt for the next few minutes, and thus it would allow me to run the command.  But when I run it now as there is no caching before hand and as it starts a new thread immediately and sudo doesn't even prompt me for a password, I am unable to run it in this way.  So unless I run sudo -i before it I am unable to run a command in this format which is becoming rather annoying. So I was wondering if there is any way to get around this and still run programs and commands in this way?  I am running Ubuntu GNOME 15.10 with GNOME 3.18, and specifically the program I want to run in this fashion is etherape if that makes any difference, but I would really like the solution to work for all programs and commands. How to remove Open CTI VF softphone page from salesforce left side Open CTI Softphone VF page is showing in salesforce left side. How to remove this ? Screenshot attached What is the exact $SU(2)$ representation to which these Hermitian generators belong? \begin{equation} t_a=\{t_1,t_2,t_3\}=\left\{\frac{1}{\sqrt{2}}\begin{pmatrix}  0 &amp; 1 &amp; 0 \\ 1 &amp; 0 &amp; 1 \\ 0 &amp; 1 &amp; 0 \end{pmatrix},\,\frac{1}{\sqrt{2}}\begin{pmatrix}  0 &amp; -i &amp; 0 \\ i &amp; 0  &amp; -i \\ 0 &amp; i &amp; 0 \end{pmatrix},\,\begin{pmatrix}  1 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; -1  \end{pmatrix} \right\} \end{equation}  I'm a bit puzzled with this, these are not the generators of the triplet representation of $SU(2)$ (the triplet in $SU(2)$ is the adjoint rep which is real and constructed with the structure constants), nevertheless they are used as if they were in much literature. What are really these generators? They seem like the extension to 3 dimensions of the Pauli matrices. The 3 dimensional fundamental rep (this does not make sense to me)? some kind of non-irreducible representation? Question:     Let $f$ be differentiable on $[0,+\infty)$, such as$$\lim_{x\to+\infty}\left([f'(x)]^2+f^3(x)\right)=0$$show that $$\lim_{x\to\infty}f(x)=\lim_{x\to\infty}f'(x)=0$$   I think this problem is similar to  and (the  background)  For my problem I guess that if  $$\lim_{x\to+\infty}\left([f'(x)]^{2m}+f^{2n+1}(x)\right)=0,m,n\in N^{+},n,m&gt;1$$ then we have $\lim_{x\to\infty}f(x)=\lim_{x\to\infty}f'(x)=0$. Does a Readied spell immediately use a spell slot? Can I get more than 1000 records from a DirectorySearcher? I just noticed that the return list for results is limited to 1000. I have more than 1000 groups in my domain (HUGE domain). How can I get more than 1000 records? Can I start at a later record? Can I cut it up into multiple searches?  Here is my query:  DirectoryEntry dirEnt = new DirectoryEntry("LDAP://dhuba1kwtn004"); string[] loadProps = new string[] { "cn", "samaccountname", "name", "distinguishedname" }; DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)", loadProps); var results = srch.FindAll();   I have tried to set srch.SizeLimit = 2000;, but that doesn't seem to work. Any ideas? I am setting up a server where there are multiple developers working on multiple applications.  I have figured out how to give certain developers shared access to the necessary application directories using the setgid bit and default ACLs to give anyone in a group access.  Many of these applications run under a terminal while in development for easy access. When I work alone, I set up a user for an application and run screen as that user. This has the downside that every developer to use the screen session needs to know the password and it is harder to keep user and application accounts separate.  One way that could work is using screen multiuser features. They do not work out-of-the-box however, screen complains about needing suid root. Does giving that have any downsides? I am pretty careful about using suid root anything. Maybe there is a reason why it isn't the default?  Should I do it with screen or is there some other intelligent way of doing what I want? Select top 10 records for each category I want to return top 10 records from each section in one query. Can anyone help with how to do it?  Section is one of the columns in the table.  Database is SQL Server 2005. I want to return the top 10 by date entered.  Sections are business, local, and feature.  For one particular date I want only the top (10) business rows (most recent entry), the top (10) local rows, and the top (10) features. What is the relationship between regression and linear discriminant analysis (LDA)? Is there a relationship between regression and linear discriminant analysis (LDA)? What are their similarities and differences? Does it make any difference if there are two classes or more than two classes? Find $\lim_{n\to \infty}({1\over \sqrt{n^2+1}}+{1\over \sqrt{n^2+2}}+\cdots+{1\over \sqrt{n^2+n}})$ strong textFind $\lim_\limits{n\to \infty}\left({1\over \sqrt{n^2+1}}+{1\over \sqrt{n^2+2}}+\cdots+{1\over \sqrt{n^2+n}}\right)$. I do know it is bounded by $1$. I tried using the sandwich rule with no success. How can I solve it? Is there animation software available? Is there commercial-grade computer animation software available for Ubuntu, similar to the professional software sold for the Windows operating system?  This question goes out to those of you who may be using such software professionally.  My daughter recently graduated from the Art Institute of Seattle, and needs to put together an animation portfolio in order to interest employers in the field.  As you know, such software is usually provided by the employer and the costs are high - several thousand dollars.  I suggested that she investigate Ubuntu as a possible way to acquire the tools she needs.  But, since I have no idea what might be available, either as open source or proprietary animation software, I am reaching out to the Ubuntu community for help in the hope someone who is using such software can help her.  Thank you for reading this post, and for any information you might have.