Understanding Inheritance in C++
Why do we need virtual functions in C++?
Duplicate id in list My service is working fine for single record insert when i send bulk records at that time it showing soapenv:ClientSystem.ListException: Duplicate id in list: 01ti0000002gUP1AAM Class.Sample.behaviourOfWebService: line 235, column 1  the error line is Database.upsert(pList)     p.productCode = pCode;    p.name =pName;    pList.add(p);  } The left-nav is great - I like it, users who don't can disable it. Perfect world. Now it's stickied it's always there too, which is really useful.  When I'm navigating in areas not directly linked to in the left nav and have scrolled down, I often want to re-use the other navigation. This means scrolling up. Which is fine, of course it's how websites work.  However, if the left-nav had a "Top" link which took the user to the very top of the page it would be great for getting back to specific contextual menus and things that are not linked to in the left-nav.  For example, if I'm viewing questions on a specific tag and I've scrolled down, I sometimes want to get back up to the top to remove a tag, or change from "Latest" to "Featured" etc. Although clicking the "Questions" link in the left-nav takes me back to the top, it removes the tag(s) I was searching with.  There are other use cases where this would be useful, like long questions and answers (Etc). So I think a "Top" link in the left nav would be very useful.    I think this is different to the  as it doesn't mention the left-nav, and my question is suggesting this idea because we have a good place to put it and it'll be a useful addition to the left-nav. Why does `\texttt` repeat and shrink my equation? When I use \texttt with the caret symbol in an amsmath equation environment, I get a very weird result. Specifically, the text repeats itself four times while shrinking.  MWE:  \documentclass{article} \usepackage{amsmath}  \begin{document}  \begin{equation*}     \texttt{y^o} \end{equation*}  \end{document}   Compiling this document with pdflatex produces the following result:    The same result occurs even if I remove the o character. To fix it I could modify the offending line to \texttt{y$^o$}, but why is this repeating happening in the first place? Our admins deployed a new version of Notepad++ (version 6.3) on our machines, and this version is highlighting all changes done in a file by default. It does so by setting the background color of every modified line to a bright orange, which I find very distracting.  We  have dozens of plugins installed, but I double checked and we do not have the "Change Markers" plugin (which could be the culprit).  Any idea where I can disable this feature? Changing the highlight color could also be an option. I've seen multiple servers where you can connect from any (recent) major version. (Example, 1.9, 1.8 OR 1.7) And they all seem to be able to do it. Alas, a simple google search did not fix the problem. Any ideas? Thanks guys.  (PS: The Minecraft server is running on the latest Spigot for 1.10 as of 6/27/16) I've built a current sense differential amplifier that measures the voltage across a 1 Ohm resistor, to give me a reading for the current through it.  I've connected it as follows, all resistors are matched 10k to give a gain of 1:    (Image source: )  I am powering it from a single rail 12 volt source. The problem is even though this is a rail to rail opamp (Output Low swing from 5-20mV) I'm getting a constant error of 0.62V and it seems the opamp is not able to go below this value.   I have tried to resolve this by connected Vout to ground using a 10k resistor, but that makes no difference whatsoever.  I tried it with dual supply configuration (+8V, -8V) and that seems to resolve the issue. However I want to run this off a single supply rail, so this is not a viable option.  How can I resolve this? I'm trying to measure the voltage drop across a 1 ohm resistor to give me a reading for current through the circuit (0-1V represents 0-1 A) so I can set up a current limit. A better way (or practice) to doing this is also welcomed. The initial (but not ideal) fix I can think of, is to offset the readings by a few volts?  Edit:  Changed R1-R4 from 10k to 100k and I'm down to about 30-50mV! Please tell me is there any fundamental difference between the two sentences:   Even today, people continue to use cheques.  Even today, people are continuing to use cheques.    I mean is there a difference as in time period (i.e when the action starts and when it ends). Or are the two sentence just the same and interchangeable? Good Number Theory books to start with? I'm in Grade 11. I'm interested in elementary number theory and would like properly study it. I'm not intending to enter any competitions. Does being granted a Schengen visa and not going have any consequences? I'm granted a one-entry Schengen visa and now I can't go. Will having an unused visa in my travel passport have any consequences like future visas refusal? Do I need to do anything special? "I who has" vs "I who have." Possible Duplicate:          Am aware it is correct to say "I have written..." and "I am a doctor who has writen..."  I have, however, severally come across the sentence "I, Tertius, who have written...". Shouldn't it be "I, Tertius, who has written..."? Very strange error suddenly appeared running Biber What areas of physics depend on the sum $1 + 2 + 3 + 4 + 5 + 6+ 7+\ldots= -1/12$? This youtube video from Numberphile,   shows how the value is derived. In the video, one interviewee claims that "this result is used in many areas of physics". In the video, only string theory is mentioned.  Which areas of physics use or depend on the sum $$1 + 2 + 3 + 4 + 5 + 6+ 7+\ldots= -1/12?$$ Get string after character How can I cancel an edit I made on another user's question or answer? Edits made by users who do not have edit privileges are placed in a queue until it is peer reviewed.  E.g., I edited someone else's answer. but changed my mind. If I'd edited my own question/answer, there would be a "Rollback" button, but there's no such button in the scenario I'm describing (at least none that I can see).  This is more relevant today because users can only have at most five edits waiting in the queue, and allowing one to cancel an edit would permit them to free up one of their five pending edits for something else.  Is there a way to remove one's edit from the peer review queue? How to open a particular port in ubuntu? My SoulSeek client Nicotine+ checks my open ports during initial configuration and promts that the one port number it needs is closed, cutting me off frmo about 50% of the users. Is there anyway I can open that particular port for the application to use?  RUnning ubuntu desktop 13.04. I have not manually installed any firewalls, but not sure if its included in the default installation. In Leibniz notation, the 2nd derivative is written as $$\dfrac{\mathrm d^2y}{\mathrm dx^2}\ ?$$  Why is the location of the $2$ in different places in the $\mathrm dy/\mathrm dx$ terms? How can you prove that a function has no closed form integral? In LWC am trying to iterate over a list and show the details from the list, this is working correctly , but as a header want to show the record number in a displayed order, below is desired outcome and simplified sample code.  Desired OutCome:   Employee Record 1: A  Employee Record 2: B  Employee Record 3: C   JavaScript:  Var empNames = ["A" , "B" , "C"];   HTML:  &lt;template for:each={empNames} for:item="employee" for:index="index"&gt; Employee Record{index} {employee} &lt;/template&gt;    Actual outcome  Employee Record 0: A  Employee Record 1: B  Employee Record 2: C   I understand as i am using {index} which indicated the position of element in an array which starts from 0 my actual outcome also starts like Employee Record 0 instead of Employee Record 1, but is there a simple way without writing much logic on JS to handle this in html and to make my headers starts from 1 instead of 0? I have to determine how many six-integer subsets of $\{1, 2, 3, \ldots, 20\}$ are possible if no two consecutive integers are in a set. Incorrect icons on hot network questions