OOP Java: Better to extend a class or create a new instance of the subclass?
Prefer composition over inheritance?
What does Geordi see on the holodeck? We've seen how he interprets people and things with his VISOR, but if the holodeck is all force-fields and holographic imaging, how does he interact in a similar way to other members?   What does the holodeck look like to Geordi LaForge using his VISOR? How many ways can $133$ be written as sum of only $1s$ and $2s$ Since last week I have been working on a way, how to sum $1$ and $2$ to have $133$.  So for instance we can have $133$ $1s$ or $61$ $s$2 and one and so on. Looking back to the example: if we sum: $1 + 1... + 1 = 133$ there is only one way. But for the second one there will be $131$ possible ways. And I have to do this for every possible combination. I am stuck with it and I have no idea whatsoever on how to begin.  Any ideas or methods I could use guys? The "Hurry up, it's raid night" achievement in Starcraft 2 involves "beating Wings of Liberty, on normal, in 8 hours or less."  Is there a recommended mission path to take? Which mission should I take for the branching paths? Does it count time spent on the Hyperion in between missions, or is it exclusively time elapsed on missions. Does replaying a mission affect the time? General tips / hints from those who've unlocked the achievement?  Edit: Just got this achievement tonight, finally! The answer was perfect. Why, historically, do we multiply matrices as we do? Multiplication of matrices &mdash; taking the dot product of the $i$th row of the first matrix and the $j$th column of the second to yield the $ij$th entry of the product &mdash; is not a very intuitive operation: if you were to ask someone how to mutliply two matrices, he probably would not think of that method. Of course, it turns out to be very useful: matrix multiplication is precisely the operation that represents composition of transformations. But it's not intuitive. So my question is where it came from. Who thought of multiplying matrices in that way, and why? (Was it perhaps multiplication of a matrix and a vector first? If so, who thought of multiplying them in that way, and why?) My question is intact no matter whether matrix multiplication was done this way only after it was used as representation of composition of transformations, or whether, on the contrary, matrix multiplication came first. (Again, I'm not asking about the utility of multiplying matrices as we do: this is clear to me. I'm asking a question about history.) Do synonyms have exactly the same meanings as each other in all contexts? I have a question about synonyms: I'm wondering for quite a while if synonyms always stand exactly for the same thing. Is there sometimes a little difference in meaning? Let's use clumsy and clunky for example. Can I always replace clunky with clumsy? Since I'm not a native speaker, as you may have noticed, I cannot tell them apart. According to my dictionary, they mean exactly the same. Is it always true?  If the question has already been ask, sorry I couldn't find it.  Edit: Thank you very much! Every answer has helped a lot and thank you so much for it. I really appreciate it. I've voted all your answer because every answer helped me in a different way. I've accepted Barrie England's answer because it was the best one in my case. But all of yours were really good and helpful :) Given three matrices $A$, $B$ and $C$ such that $ABA^T C$ is a square matrix, the derivative of the trace with respect to $A$ is:  $$ \nabla_A \operatorname{trace}( ABA^{T}C )  = CAB + C^T AB^T $$  There is a proof . However, I was not able to understand the second line of the proof. it says something like this:  $$ \nabla_A \operatorname{trace}( ABA^T C )= \nabla_\bullet \operatorname{trace}(f(\bullet)A^{T}C) + \nabla_\bullet \operatorname{trace}(f(A) \bullet^T C) $$  Where  $f(A) = AB$  I tried searching the proof or any hint using google, but I couldn't fine anything. Could anyone please help me with this second line. I cannot sleep. I am obsessed with this proof. disable clickable landmark on google map How to validate an email address in JavaScript I need to use a different version of circuitikz. How can I do that? I have an Ubuntu server and I've installed MySQL.  How would I use my two physical static IP addresses in my.cnf bind-address -- can I add two IP addresses? I'm trying to show that a finite sum of eigenspaces (with distinct eigenvalues) is a direct sum.   I have $ \alpha : V \to V $. The eigenspaces are $ V_{\lambda_i} = \ker(\alpha - \lambda_i id_V )$ for $ 1 \leq i \leq n $. My attempt at a proof:  $ A + B $ is a direct sum iff $ A \cap B = \{0\} $. If $ v \neq 0 \in V_{\lambda_i} \cap V_{\lambda_j} $ for some $i,j, i \neq j $, then $ \alpha(v) = \lambda_i v $ and $ \alpha(v) = \lambda_j v $. So $(\lambda_i - \lambda_j)v = 0 $, and so $ \lambda_i = \lambda_j $. This is a contradiction, so any pair of the eigenspaces have trivial intersection. Therefore $ \cap_{i=1}^n V_{\lambda_i} = \{0\} $, and so we have a direct sum.  Is this ok?  Thanks Currently Running: macOS Catalina 10.15.1 Issue: Ever since I upgraded to Catalina, macOS is not allowing me to change read and write permissions on system protected files, hence, I am not able to tweak the system as per my likes and dislikes. Steps Tried To Solve The Issue: SIP, always remains . So, no question arises regarding any conflict with system integrity protection. I have also tried to force change the permissions on the system files I want to edit using certain brute force commands, which I can't recall the name of, right now. But, I have tried. As of now, I am still unable to change read and write permissions on system protected files and resources. Does the series $\sum \sin^{(n)}(1)$ converge, where $\sin^{(n)}$ denotes the $n$-fold composition of $\sin$? Do lure modules and incense cause new pokemon to spawn near you, or existing pokemon to be drawn to you? So, Can linking verbs be used with "continuous tenses"? Fundamental question about dimensional analysis How should an educational institute woo good faculty? What steps must an educational institution wanting to recruit good faculty take? There is a cycle in the academia:    Good doctorates from top universities invariably join other top universities as faculty members.  Good students aspire to study in top universities under excellent faculty members.   Suppose a new educational institution or department springs up and desires to set up a top-quality group, how does it break into this cycle? I suppose this could take some years, but is money-power the only thing that could be wielded by the institute to achieve its end? My parents are Indian Citizens. They hold a valid B2 Tourist Visa to USA. I'm planning to book a flight with Hyderabad (India) - Abu Dhabi (UAE) - Dublin (Ireland) - USA. The leg from Hyderabad to Dublin is operated by Etihad and I know there is no problem hopping at Abu Dhabi. The leg from Dublin to US is operated by Aer Lingus. I called Aer Lingus customer care agent told me a transit visa is required to land in Dublin. She did not care to ask for the citizenship of traveller or about the USA visa. I went through Irish immigration website - (), India is not in list of countries that require transit visa. I'm now confused. Can some one confirm if they traveled with the same itinerary recently  Update: I called Aer Lingus again. Another agent told as long as I don't exit the airport, a transit visa is not required. I think these people don't really understand trouble we go through when boarding is denied. I put this question because I read a person was denied boarding earlier - . His case mentions about denied because of different day. But I see his transit time is 12 hours only. I know people love to close duplicates so I am not asking for a reference to start learning statistics (as ).   I have a doctorate in mathematics but never learned statistics. What is the shortest route to the equivalent knowledge to a top notch BS statistics degree and how do I measure when I have achieved that.   If a list of books would suffice (assuming I do the exercises lets say), that's terrific. Yes, I expect working out problems to be an implicit part of learning it but I want to fast track as much as realistically possible. I am not looking for an insanely rigorous treatment unless that is part of what statistical majors generally learn. I am having an issue where DHCP (I though as I read in other similar topics) is clearing the /etc/resolv.conf file on each boot. I am not sure about how to deal with this since the post I have found (,  and some others) are for Debian based distros or other but not Fedora.  This is the output of ifcfg-enp0s31f6 so for sure is DHCP:  cat /etc/sysconfig/network-scripts/ifcfg-enp0s31f6  HWADDR=C8:5B:76:1A:8E:55 TYPE=Ethernet DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=no IPV6_DEFROUTE=no IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s31f6 UUID=0af812a3-ac8e-32a0-887d-10884872d6c7 ONBOOT=yes IPV6_PEERDNS=no IPV6_PEERROUTES=no BOOTPROTO=dhcp PEERDNS=yes PEERROUTES=yes   In the other side I don't know if Network Manager is doing something else around this.  Update: Content of NetworkManager.conf (I have removed the comments since are useless)  $ cat /etc/NetworkManager/NetworkManager.conf  [main] #plugins=ifcfg-rh,ibft dns=none  [logging] #domains=ALL   Can I get some help with this? It's annonying be setting up the file once and once on every reboot.  UPDATE 2  After a month I'm still having the same issue where file gets deleted by "something".   Here is the steps I did follow in order to make a fresh test:   Reboot the PC After PC gets restarted open a terminal and try to ping Google servers of course without success:  $ ping google.com ping: google.com: Name or service not known  Check the network configuration were all seems to be fine:  $ cat /etc/sysconfig/network-scripts/ifcfg-enp0s31f6  NAME=enp0s31f6 ONBOOT=yes HWADDR=C8:5B:76:1A:8E:55 MACADDR=C8:5B:76:1A:8E:55 UUID=0af812a3-ac8e-32a0-887d-10884872d6c7 BOOTPROTO=static PEERDNS=no DNS1=8.8.8.8 DNS2=8.8.4.4 DNS3=192.168.1.10 NM_CONTROLLED=yes IPADDR=192.168.1.66 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 GATEWAY=192.168.1.1 TYPE=Ethernet DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no  Restart the network service:  $ sudo service network restart [sudo] password for &lt;current_user&gt;:  Restarting network (via systemctl):                        [  OK  ]  Try to ping Google servers again, with no success:  $ ping google.com ping: google.com: Name or service not known  Check for file /etc/resolv.conf:  $ cat /etc/resolv.conf  cat: /etc/resolv.conf: No such file or directory  File doesn't exists anymore - and this is the problem something is deleting it on every reboot Create the file and add the content of DNS:  $ sudo nano /etc/resolv.conf   Ping Google servers this time with success:  $ ping google.com PING google.com (216.58.192.110) 56(84) bytes of data. 64 bytes from mia07s35-in-f110.1e100.net (216.58.192.110): icmp_seq=1 ttl=57 time=3.87 ms    Any ideas in what could be happening here?