I've found in  a strange syntax:  struct foo {     int bar;     int baz; };  typedef int foo::*foo_member; foo_member m = &amp;foo::bar;   I still do not understand the type foo_member, what does type int foo::* mean?   Even more confused, what is &amp;foo::bar in the initialization  foo_member m = &amp;foo::bar;   and  foo AS1* f = /* ... */; f-&gt;*m = 4;   I suppose that means f-&gt;bar = 4 (or not?), what does syntax f-&gt;*_variable_ mean?  Many thanks for any response.
I came across this strange code snippet which compiles fine:  class Car {     public:     int speed; };  int main() {     int Car::*pSpeed = &amp;Car::speed;     return 0; }   Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?
I have created screenShot() method to take the screenshot of the web page. When I used this method in my code first time it will capture the screen and it will save the image with image1 name. When I used the same method screenShot() to capture screens for other pages with the use of this.screenShot(); this will again capture the current web page screen but it stores With the same name image1 in the same folder (which overrides to previously captured screen image1).  Now, I have to take screenshots for the number of web pages &amp; want to store it into the same folder with different names like image1, image2, image3...etc. by using the same method screenShot().  public void screenShot() throws IOException, InterruptedException {     File scr = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);     File dest = new File("filPath/image1.png");     FileUtils.copyFile(scr, dest); }   Any workaround to achieve this scenario? Derive equation for a cantilever in SHM Can't change mouse influence in proportional editing mode I press O and I see it change to Proportional Editing mode, but when I press G and mouse wheel down/up, or arrow keys down/up, it doesn't change the influence area.    And I am, I press G and then I tried to scroll to change influence, but it's not working.    Done this aswell and it's not working What is a good criterion or rule-of-thumb for determining when a control should be greyed-out and when should it be completely invisible? Test for existence of nested JavaScript object key Consecutively Adding Sines One thing, I'm not a mathematician so please be patient. I am still in Algebra II Trig. Leading with that, why does  $$ x_0 = \sin 1, \space  x_1 = x_0 + \sin x_0, \space x_2 = x_1 + \sin x_1 ... $$ and after a while, $$ x = \pi $$  I know this to be true because I have evaluated this on my TI-84 and more deeply evaluated it with this program I made:   To $100000$ Iterations (which I believe is enough)   So what's the math behind it? Why does adding $\sin 1$ in this manner produce $\pi$? Why doesn't doing the same thing using $100$ produce $\pi$? For example,  $$\sin(1) = 0.841470...,\space \sin(1) + \sin(0.8414...), \sin(1) + \sin(0.841470...) + \sin(1.587095126...),\space ... $$ $$ = \pi$$  My question is different from the mentioned because my function is not taking the sin of a sin consecutively, but is this following function: $f(x) = x + \sin x$ and is not $f(x) = \sin x$ and therefore can exhibit different properties I need explained. I would like to create a batch file, that will add registry key, not manually, but full automaticly by .BAT file.  goes about adding everything but not the key.  shows how to add everything, and how to add key manually, but it requires user interference, which I am trying to avoid.  Is there possibility to add KEY (non REG_*) to "folder?" in registry by one simple batch file? How can I define a 3D version of the built-in VoronoiDiagram (VoronoiMesh in V10) function? Eclipse was working as good as anything on 14.04. I did a clean install of 16.04 and installed Eclipse. But it runs a Java program only once after which it just hangs during subsequent attempts before I remove and reinstall it. I have tried many things, since in the beginning I needed CDT as well. Right now, I just want to remove everything related to eclipse and do a fresh install (remove all the configs and dependencies). Please note that I used Eclipse installer to install Eclipse and the eclipse icon image is also not appearing (the default ubuntu ? is appearing). How to do joins in LINQ on multiple fields in single join I need to do a LINQ2DataSet query that does a join on more than one field (as  var result = from x in entity join y in entity2         on x.field1 = y.field1  and            x.field2 = y.field2   I have yet found a suitable solution (I can add the extra constraints to a where clause, but this is far from a suitable solution, or use  solution, but that assumes an equijoin).  Is it possible in LINQ to join on multiple fields in a single join?  EDIT  var result = from x in entity              join y in entity2              on new { x.field1, x.field2 } equals new { y.field1, y.field2 }   is the solution I referenced as assuming an equijoin above.  Further EDIT  To answer criticism that my original example was an equijoin, I do acknowledge that, My current requirement is for an equijoin and I have already employed the solution I referenced above.  I am, however, trying to understand what possibilities and best practices I have / should employ with LINQ. I am going to need to do a Date range query join with a table ID soon, and was just pre-empting that issue, It looks like I shall have to add the date range in the where clause.  Thanks, as always, for all suggestions and comments given Branch of the n-th root of a holomorphic function is holomorphic It is true that given a domain $D$ and a function $f$ that is holomorphic and not vanishing in $D$, then a branch $\varphi$ (with $\varphi$ continuous) of $f^{1/n}$ in $D$ is holomorphic in $D$ ().   My question is, does the statement remain true if we remove the non-vanishing condition? I haven't been able to find a counterexample or a proof on that more general case. If the subject of a sentence is separated by "and/or", should the verb be pluralized, as with "and", or agree with the rightmost subject, as with "or"? For example:     His co-workers and/or his boss was at fault.   vs.     His co-workers and/or his boss were at fault. Is it possible to use "negative sound waves" to "cancel out" a sound to create silence? rtl8723ae unstable on Ubuntu 14.04 I have searched through the internet and in AskUbuntu, but I could not find a working solution for my little problem.  The RTL8723ae WLAN is behaving strangely on Ubuntu 14.04 and drops the WLAN connection constantly. I am using the notebook MSI GE40 and have already seen on the web that there are other people having the same problem but there was no permanent solution. The problem did not exists on the original Windows 8 on the device and the router is a TP-Link, which I can control (channel change and so on, I use WPA2-PSK WLAN security). What is "offset null" in IC 741? What is Offset null in 1st and 5th pin in IC 741 (Op-Amp)? Why it is used, though it is not used in many circuits? Give me explanation regarding the offset null! Why offset voltage was formed in IC 741? Displaying attachments on visual force page I need to display attachments on a visual force page for the Case object.  This is the code I am using. I had it working for awhile, but it somehow broke down. It gets all the attachments, but it will not show the images.   &lt;apex:repeat value="{!Case.attachments}" var="att"&gt;             &lt;apex:panelgrid columns="1"&gt;                 &lt;h1&gt;Image/h1&gt;                 &lt;apex:image url="/servlet/servlet.FileDownload?file={!att.Id}"/&gt;             &lt;/apex:panelgrid&gt; &lt;/apex:repeat&gt; What is the meaning of the density of a distribution at a point? I know how to use PDFs to calculate probabilities, but I don't think I understand them. For example, at $X=0$ the PDF of the standard normal distribution is $\approx 0.4$. Does this have any useful meaning? I've got a project where I'm looking to tweak the standard lead conversion process.   Triggers and lead conversion has always been funky in past projects so I was hoping to start the design off by reviewing the order of execution, but after a long google search I'm coming up empty handed.   Anyone out there know the specific trigger order for lead conversion?    Edit: I'm not asking about trigger execution order for any object, but all the objects created in the lead conversion process.  I'd think it would be something like this:        Lead Before Update Triggers (isConverted = false, convertedAccountId = null, convertContactId = null, convertedOpportunityId = null)         Account Before Insert Triggers (not fired if merged with existing account)   Account After Insert Triggers (not fired if merged with existing account)   Contact Before Insert Triggers (not fired if merged with existing contact)   Contact After Insert Triggers (not fired if merged with existing contact)   Opportunity Before Insert Triggers (not fired if no opportunity) (OpportunityContactRoles null)   Opportunity After Insert Triggers (not fired if no opportunity) (OpportunityContactRoles = convertedContactId)   Lead After Update Triggers (isConverted = true, convertedAccountId = XXX, convertedContactId = XXX, convertedOpportunityId = XXX) Map a network drive to be used by a service Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service's session when the service is started? Logging in as the service user and creating a persistent mapping will not establish the mapping in the context of the actual service. How to make bash put prompt on a new line after cat command? What I get:  host:~ user$ cat example.txt some texthost:~ stas$   What I want to get:  host:~ user$ cat example.txt some text host:~ stas$   Is there a way I can make cat behave like this?  I'm using bash on Mac OS X.