How to access private data members outside the class without making "friend"s?
Can I access private members from outside the class without using friends?
What is a field, really? Explain what is a transistor in plain English! How do I determine the shutter count on a EOS 60D body? Among other sources,  states that triple DES using three seperate keys (k1, k2, k3) is vulnerable to meet-in-the-middle-attacks, while triple DES using only two keys (k1, k2, k1) is not.  Why is this attack possible if all the keys are different, but not if the first and the third are the same? Do USA States have reciprocal agreements for learner drivers' permits? Where do I get the key for the first house? I've 'completed' the game, but didn't find the key for the first house. (I got the one for the arcade machine house). Where can I find it? Why is Newton's first law necessary? Newton's second law says $F=ma$. Now if we put $F=0$ we get $a=0$ which is Newton's first law. So why do we need Newton's first law ?   Before asking I did some searching and I got this: Newtons first law is necessary to define inertial reference frame on which the second law can be applied.  But why can't we just use Newton's second law to define an inertial frame? So if $F=0$ but $a$ is not equal to 0 (or vice versa), the frame is non-inertial.  One can say (can one?) we cannot apply the second law to define a reference frame because it is only applicable to inertial frames. Thus unless we know in advance that a frame is inertial, we can't apply the second law.  But then why this is not the problem for the first law?  We don't need to know it in advance about the frame of reference to apply the first law. Because we take the first law as definition of an inertial reference frame.  Similarly if we take the second law as the definition of an inertial frame, it should not be necessary to know whether the frame is inertial or not to apply the second law (to check that the frame is inertial). Show that every irrational number in $\mathbb{R}$ is the limit of a   sequence of rational numbers. Every rational number in $\mathbb{R}$ is   the limit of a sequence of irrational numbers.   How can I prove this? Locking a file in Python How can I create a video file from a set of jpg images? How do ${0##*/} and ${0%/*} work? I'm quite confused about the following regular expressions I found in a shell script:  ${0##*/} ${0%/*}   How do they work? Can someone tell me if $\frac{3}{5}$, $2+3\sqrt{-5}$, $\frac{3+8\sqrt{-5}}{2}$, $\frac{3+8\sqrt{-5}}{5}$, $i\sqrt{-5}$ are all quadratic integers in $\mathbb Q[\sqrt{-5}]$. And if so why are they in $\mathbb Q[\sqrt{-5}]$. Flag counter is missing sporadically I noticed that on both sites where I am a moderator the flag counter is occasionally not showing any flags even when there are flags in the queue. A refresh of the page leads to the correct flag count to be displayed. I noticed this happening when I visited the site for the first time in a few hours, when I was recently active on the site the counter seems to stay accurate. Up arrow under a sequence Getting the starting shortcut in c# Books for Condensed Matter after Ashcroft/Mermin What are some good condensed matter physics books that can fill the gap between Ashcroft &amp; Mermin and research papers? Suggestions for any specialized topics (such as superconductivity, CFT, topological insulators) are welcomed. Why are rockets so big? I'm curious why rockets are so big in their size. Since both the gravitational potential one need to overcome in order to put thing into orbit, and the chemical energy burned from the fuel, are proportional to the mass, so if we shrink the rocket size, it would seem to be fine to launch satellites. So why not build small rocket say the size of human? I can imagine small rocket would be easier to manufacture in large quantities and easier to transport. And maybe someone can make a business out of small rocket, carrying one's own satellite. OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files.   Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry?  Can anyone post detailed guide how install Ubuntu on external hard drive? How do I include lines in resolv.conf that won't get lost on reboot? I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.   search puppetmaster.com nameserver 192.168.1.XXX   In 12.04 resolv.conf gets overwritten when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1   Is there a way to get resolvconf to handle this either in the head, tail or base? If there is, are there any examples I can use to tweak on my server.   Any help is much appreciated. Cross-site AJAX requests I need to make an AJAX request from a website to a REST web service hosted in another domain.  Although this is works just fine in Internet Explorer, other browsers such as Mozilla and Google Chrome impose far stricter security restrictions, which prohibit cross-site AJAX requests.  The problem is that I have no control over the domain nor the web server where the site is hosted. This means that my REST web service must run somewhere else, and I can't put in place any redirection mechanism.  Here is the JavaScript code that makes the asynchronous call:  var serviceUrl = "http://myservicedomain"; var payload = "&lt;myRequest&gt;&lt;content&gt;Some content&lt;/content&gt;&lt;/myRequest&gt;"; var request = new XMLHttpRequest(); request.open("POST", serviceUrl, true); // &lt;-- This fails in Mozilla Firefox amongst other browsers request.setRequestHeader("Content-type", "text/xml"); request.send(payload);   How can I have this work in other browsers beside Internet Explorer?