I know how they are different syntactically, and that C++ uses new, and C uses malloc.  But how do they work, in a high-level explanation?  See
What is the difference between new/delete and malloc/free?  Related (duplicate?):
Can Windows 7 be repaired to run with new motherboard? I have HP computer and it came with Windows Vista. It also had an option to upgrade to Windows 7 via upgrade disc. I have upgraded to Windows 7 via the special upgrade disc (It is special because it will only allow to install Windows 7 if Vista is already installed.  My motherboard recently died. I just replaced it and Windows 7 will not start up. It reboots and sometimes gives a blue screen of death. Very similar problem as described in this post: . Windows will not boot into normal or safe mode. Start up repair from system repair disc does not fix the problem. However, "" post on superuser describes that it should be possible to run Windows 7 on a new motherboard.  Is it hopeless to find a way to repair Windows 7 and I need to do a clean install? Is there a difference for repair options between OEM and retail versions of Windows 7? I remember doing this type of repair just fine in Windows XP days, so why am I unable to do so with Windows 7 - is it Microsoft or HP's fault? Should I stop buying HP computers or should I switch to Ubuntu? Read-only file system See how many duplicates of a post? Can I see how many duplicates there are of a post? I.e. how many posts have been labelled as duplicate because of this post? If so, how? And can I also get a list of these duplicated posts? Is there a way to refresh Notepad? Say, for example, that there's one process that's writing to a file. While the process is running, I opened the file in notepad. The process keeps  writing to the file.   Other than closing and reopening the file, is there any way for me to "refresh" the data that notepad is showing? Validity of naively computing the de Broglie wavelength of a macroscopic object Many introductory quantum mechanics textbooks include simple exercises on computing the de Broglie wavelength of macroscopic objects, often contrasting the results with that of a proton, etc.  For instance, this example, taken from a textbook:     Calculate the de Broglie wavelength for      (a) a proton of kinetic energy 70 MeV      (b) a 100 g bullet moving at 900 m/s   The pedagogical motivation behind these questions is obvious: when the de Broglie wavelength is small compared to the size of an object, the wave behaviour of the object is undetectable.  But what is the validity of the actual approach of applying the formula naively? Of course, a 100g bullet is not a fundamental object of 100g but a lattice of some $10^{23}$ atoms bound by the electromagnetic force. But is the naive answer close to the actual one (i.e. within an order of magnitude or two)? How does one even calculate the de Broglie wavelength for a many body system accurately? What is the pronunciation of the possessive words that already end in s? Possible Duplicate:           My name is Greg — this is Greg 's post.  If my name ended with an 's', I am aware of the proper apostrophe usage (James&nbsp;→ James'), but how should this be pronounced?  Phonetically, am I Jameses best friend or James best friend? Partitions of $n$ into distinct odd and even parts proof I'm struggling to understand the concept of quantum entanglement. I've distilled my understanding into an analogy, and I need your help to validate it. Here it is:  Let's say I receive two envelopes. Both envelopes have this written on them:     Hello! Open this letter...   If the paper inside is red, then other envelope has blue paper.   If the paper inside is blue, then other envelope has red paper.   So, if I open one letter, and the paper inside is red, then I know the other letter contains the blue paper.  Is this equivalent to quantum entanglement? The fact that I will know the color of the other paper when I open (i.e. observe) one envelope?  In theory, if one of the letters "appeared" in a different galaxy, I would still know the color of the paper inside that letter, just by opening my letter, instantly, correct?  Before I open the letter, is the paper inside each envelope in superposition (??), i.e. 50/50, red or blue?  In this analogy, I am assuming that what's written on the letters is true. Is this a correct assumption in quantum physics? I think so yes?  In real quantum physics, would I be able to change the color of one paper, so that I change the color of the other one? No right? Mysql resolving 127.0.0.1 to hostname These may be separate questions, but the following MWE:    \usepackage{pdfpages} ...   \addcontentsline{lot}{subsection}{\ref{tab:UserRoles} \textbf{User Roles}}   \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles}]{UserRolesTable}   ...   has several unexpected behaviors.   I get the following warning:  Package pdfpages Warning: There's something wrong with the entries of `addtolist'. Not all entries were processed. Check `addtolist' [in the MWE]."    Probably due to the \label not being bound to the inserted pdf (in a table environment), my inserted PDF is numbered using the section, and not the expected "Table X" value.   The manually-inserted LoT line (which also uses the section number rather than the incremented table number) is not formatted like the other lines in the LoT - the number lines up, but the table caption itself is not aligned with the others in the list.   The source PDF has no errors and displays correctly in the output PDF.  PDFLaTeX -> BibTex    MWE:  \documentclass[11pt,letterpaper,twoside,final]{article} \usepackage{pdfpages} \begin{document} \listoftables \begin{center} \textbf{Table \ref{tab:UserRoles} - The User Roles Table} \addcontentsline{lot}{subsection}{\ref{tab:UserRoles}  \textbf{User Roles}} % manual entry in ToC  \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles, lot}]{UserRolesTable} \end{center} \end{document} I'm relatively new to ring theory so this is probably a simple question.  Its easy to see that a finite ring that is commutative and has no-zero divisors (i.e. an integral domain) must have multiplicative inverses.  I am wondering if we can rearrange these properties and always get implication or produce finite rings with only 2 of the above properties.  Explicitly my questions are:  1) Does a finite ring that is commutative with multiplicative inverses always have no-zero divisors? (EDIT: this one is pretty easy too, let $xy=0$ and assume $x\neq 0$. then $x^{-1}xy=x^{-1}0$. Hence, $y=0$ as desired.)  2) Is a finite ring that has multiplicative inverses and no zero divisors always commutative?  If these are actually simple exercises, I'd just like a hint to get started with the proof or any counterexamples.  Thanks :) Probability, quantum physics, and why (can't it/does it) apply to macroscale events? Quantum physics dictates that there are probabilities that determine the outcome of an event, ie: the probability of a quark passing through a wall is X, due to the size of the quark in comparison to the wall), but couldn't macroscale events be predicted this same way, assuming all variables were accounted for (lets hypothetically say we have a computer powerful enough to take into account all factors).  My understanding is that as the scale of an object increases, the probability of it doing anything other than what classical physics dictates is almost 0%, but could conceivably do something not predicted (Example: a human being cannot pass through a wall, but given an infinite timescale, eventually s/he would because of probability not being 0). Is this accurate? If so, then shouldn't we, (except as a tool for conceptualization, like how we round 9.8 m/s^2 or pi to 3.14), use only quantum mechanics to explain events in any scale (for more accuracy)? Short story that takes place off planet, involving sun and rain I read this short story about 20 years ago, and I'd love to find the title and author. This is what I can recall about the story:   It takes place in a classroom full of kids (around 10 years old?) The planet always gets rain The kids lock the main character (a girl, I think) in the closet during the very rare occurrence of sunlight and she misses the entire event.    I know it's not much to go on, but I hope it rings a bell for someone! How are "needs to be washed," "needs washing," and the regional variant "needs washed" to be distinguished"? Looking for book: contact with aliens, five different races, mismatched claws, biological imperative to breed give a variable to an operator For a workflow tool I made a panel in which it displays each separate library that is linked in my file. For each library I want to add some buttons that does stuff to the library in question.  So in this example I have my panel which shows for example 2 libraries and for each one it creates a "reload" button.  Now my question is.. How do I make it so the reload button only reloads the library I want to reload? I would probably have to give the button an id or something so it knows for which library it was created...  my code so far:  import bpy  libs = bpy.data.libraries  class Reloadlib(bpy.types.Operator):     """Reloads the current Library"""     bl_idname = "my.reload_lib"     bl_label = "Reload"      def execute(self, context):         libs[?????].reload()         self.report({'INFO'}, 'Reloading ' + libs[?????].name)         return {'FINISHED'}  class LibPanel(bpy.types.Panel):     """Creates a Panel in the scene context of the properties editor"""     bl_label = "Scene Libraries"     bl_idname = "SCENE_PT_layout"     bl_space_type = 'PROPERTIES'     bl_region_type = 'WINDOW'     bl_context = "scene"      def draw(self, context):         layout = self.layout         scene = context.scene         layout.label(text="Libraries:")          for i in libs:             layout.label(text= i.name.replace(".blend",""))             row = layout.row()             sub = row.row()             sub.operator("my.reload_xref", icon = "FILE_REFRESH")  def register():     bpy.utils.register_class(Reloadlib)     bpy.utils.register_class(LibPanel)  def unregister():     bpy.utils.unregister_class(Reloadlib)     bpy.utils.unregister_class(LibPanel)  if __name__ == "__main__":     register()   Where the question marks are is where I should be able to make the difference between the first [0] or second [1] library in the libs[] array.  In future I would also like to ad an 'open' and an 'unlink' button for each library so I can make changes to the other file. But this works by the same principle as the reload button. How to prove Euler's formula: $e^{i\varphi}=\cos(\varphi) +i\sin(\varphi)$? Show that $\deg f$ is even when $n$ is odd. A map $f:S^n\rightarrow S^n$ satisfying $f(x)=f(-x)$ for all $x\in S^n$ is said to be an even map. Show that if $f:S^n\rightarrow S^n$ is an even map, then $\deg f=0$ when $n$ is even and $\deg f$ is even when $n$ is odd. Moreover show that when $n$ is odd, there exist even maps of any given even degree.   My Try:  So $f=(-I)\circ f$. Then $\deg f=\deg (-I)\times \deg f$. If $n$ is even $\deg (-I)=-1$. Hence, $2\deg f=0$, so $\deg f=0$. But how do I show the results when $n$ is odd. No clue at all. This problem is in Hatchers book (A very complicated text). There is a hint but I do not understand it. Can somebody help me to proceed? How can I prevent system clipboard image data being pasted into a WPF RichTextBox I have county data in which the &quot;FIP&quot;s (actually State &quot;FIP&quot;s and County &quot;FIP&quot;s combined). I have data imported as CSV with the sames &quot;FIP&quot;s data titled 'STCounty'. However, the shapefile &quot;FIP&quot;s is listed as a Real and the CSV came in as an Integer and the Join function does not seem to work.  The drop boxes are greyed out/empty. So the bigger questions is how do you change the attribute type in a table? I tried to create a new column in the shapefile (county data) and set it to an integer and then multiply the &quot;FIP&quot;s*1, but got a column full of NULL. I am new to QGIS and have a lot of experience in MapInfo, so the join concept is not new to me, just the syntax in QGIS.