Clang CMAKE Precompiled headers
Using pre-compiled headers with CMake
New to Macbook Pro, need help upgrading I was recently gifted an old Mid 2010 Macbook Pro with the following specs listed here:    I would like to do a few things to it, but I have never owned an apple computer before and I know there are some restrictions on the hardware i can purchase to upgrade it.  These are the things I want to do  1) Upgrade Ram: Currently it has 2x2GB of RAM in it. This model is rated for up to 8GB but I have been reading online and it seems some people have been able to successfully install 16GB of RAM, so i am confused. Does anyone have a definitive statement on whether or not this Macbook Pro will work with 16GB of RAM? If it does accept 16GB total which RAM should i buy for a Macbook Pro like this? If it only accepts 8GB total which RAM should i buy? And I know the clock speed must be 1066Hz for this Macbook Pro, but can i use DDR3, or DDR4 RAM? Does the DDR type matter?  2) Install Secondary Hard Drive: I am not 100% so i need someone to inform me but i believe there is space in this Macbook Pro for a second hard drive. Does the CD Drive need to be removed in order for a second Hard Drive to be put in? Or is there simply space inside it for a second hard drive but not installed by Apple? Either way I would like to install an SSD into it and install the Operating System onto that SSD. Which SSD can i look to buy that is compatible with this  Pro?  3) Fresh install of Mac OSX: As it currently stands my friend who gave this laptop to me didn't erase his data. I am uncomfortable with this and want a fresh start. How do I do a fresh install of Mac OSX Mavericks (or should i wait for Yosemite?). Where can i buy a Disk/USB for it (or make a disk/USB for it) to do a clean install and how do i format a Macbook Pros hard drive and install fresh? Should this be done at an apple store?  4) Higher Screen Resolution: This is my lowest priority and I don't think it is possible to do without major invasive changes to the Macbook Pro but i want to know if it is possible. Currently the Max Resolution on the Device is 1440x900, i would like to know if it is possible to replace the LCD with one that is 1920x1080 for high resolution. Add an API key to QGIS for QOSM layer Open-source alternative to Adobe InDesign There is some open-source software, similar to Adobe InDesign? It would be awesome if it do exist...  I know all the others like Inkscape, Gimp, etc... but for InDesign i have none.  Could you give me one direction? Why is $\sqrt{-x}*\sqrt{-x}=-x?$ Q1 - Why is $\sqrt{-x}*\sqrt{-x}=-x?$  Q2 - I was thinking it would be:  $\sqrt{-x}*\sqrt{-x}=\sqrt{-x*-x}=\sqrt{x^2}$ but apparently not (why not?)  Q3 - What are the formal algebra rules to use? Can I calculate this without using i such as in: $\sqrt{-x}*\sqrt{-x}=i\sqrt{x}*i\sqrt{x}=-\sqrt{x^2}=-x$. Collinearity diagnostics problematic only when the interaction term is included Are PDO prepared statements sufficient to prevent SQL injection? Why did Aragorn and Theoden ride out at the Hornburg? In the Battle of the Hornburg from The Two Towers, Aragorn and Theoden say "We must ride out." Why did they do this?  Was it just a matter of honor? Did they ride out on their horses in the middle of battle because they thought it was the end, as they were outnumbered? Was it because Aragorn knew Gandalf was coming so they were confident they were about to win? What are the limitations of a typical kit lens as a general purpose lens? I have a Canon EOS 550d with the 18-55mm IS kit lens. I have done  (portraits, nature, night shots etc), and find the image quality to be pretty good. In fact most of the reviews have also been positive (at least in terms of image quality):   Quote:     indeed Canon's main concern may   ultimately become whether users have   as much incentive to upgrade to more   expensive optics as they did before       So, what are the key limitations of this lens (or any other similar kit lens) that would compel one to upgrade to a more expensive general purpose zoom lens (apart from the wanting to upgrade the zoom range)? Is there a shorter alternative for "Enjoy your meal"? The French have "Bon appetit".   In Belgium and the Netherlands we have "Smakelijk".  Is there a short way to wish someone a good meal in English? There is a command l available on my machine which appears to do nothing.  which l also produces no output. Is this a real command, and does it actually do anything? Can I successfully bake previously-frozen bread dough? In an ideal case, we assume strings and ropes to be massless and having same tension throughout.  However, I was doing some questions which involved a rope with mass.  The question was that if a uniform thick rope of length 5 m is resting on a horizontal smooth (assume frictionless) surface and is pulled by a force of 5N from one end, then what is the tension in the rope at the point 1 m away from the end where force is applied? (sorry for the poor image)    I came to the conclusion that since rope is not fixed, tension anywhere should be zero. However, when I checked the answer, it was 4 N. I failed to understand how.  Then the next part of the question was that if the rope now hangs between two fixed points which are at same level, then what would be the tension in the rope at its lowest point?    The answer has to be expressed in terms of mass of string m, acceleration due to gravity and $\theta$ where $\theta$ is the angle that tangents to the rope make with the horizontal.  I took that force acting on lowest point is mg, since it is center of mass and hence T = mg. However, according to the answer it depends upon $\theta$ as well. However, I failed to see what I was doing wrong?  I would appreciate any help in solving these questions, since I have no clue of where exactly I am wrong. I did search the Internet and a few books, but everywhere they assumed string/rope to be massless. Do things use apostrophe for indicating possessive? Possible Duplicate:          If someone owns something I would say: Mom's car.  But if the owner is not a person, does it actually own it according to English rules or common usage? Which phrase is right?         The house windows.   The house's windows.   The windows of the house. (Or something like that.)      (Feel free to modify this question so it would be clear for other people.) Calculate: $$\int_{0}^{2\pi}e^{R{ {\cos t}}}\cos(R\sin t+3t)\mathrm{d}t$$ My try: $\displaystyle\int_{0}^{2\pi}e^{R{ {\cos t}}}\cos(R\sin t+3t)dt\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\cos(\mathfrak{I\textrm{z}}+3(-i\log z)dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}}^{(\mathfrak{I\textrm{z}}+3(-i\log z))i}dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}^{\mathfrak{I\textrm{z}}}}z^{3}dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}^{\mathfrak{I\textrm{z}}}R}z^{3}dz$ and there is nothing here that is not holomorphic, therefore according to Cauchy theorem it must be exactly $0$. pure code formatting, to enhance a question, is impossible (without 2k rep) 100 prisoners are imprisoned in solitary cells. Each cell is windowless and soundproof. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his or her own cell. Each day, the warden picks a prisoner equally at random, and that prisoner visits the central living room; at the end of the day the prisoner is returned to his cell. While in the living room, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.  Before this whole procedure begins, the prisoners are allowed to get together in the courtyard to discuss a plan. What is the optimal plan they can agree on, so that eventually, someone will make a correct assertion?    I was wondering does anyone know the solution for the 4,000 days solution. Also, anyone got any ideas on how to solve this?   Just wanted to know if anyone got any ideas how to solve this.  is offering prize money for a proof of a optimal solution for it. I suppose to make it clear the people want a plan that would mean on average it would take least amount of time to free the prisoner. The point is the average run time is as low as possible. MacPorts fails to find 'make' I've installed Xcode and MacPorts on a brand new mid-2013 MacBook Air, but MacPorts doesn't work, saying that it cannot find anything.  mba:~ cnst$ sudo port install wget Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build. Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information. ---&gt;  Computing dependencies for wgetError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? mba:~ cnst$   And, indeed, there is no make or clang in the path, but it is definitely installed, though:  mba:~ cnst$ find /Applications -name "clang" -or -name "make" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang /Applications/Xcode.app/Contents/Developer/usr/bin/make mba:~ cnst$   Why is there no make or clang in the path?  Why MacPorts doesn't work?  I notice that  mentions that you have to install something from ADC, Apple Command Line Developer Tools, but ADC doesn't work since last Thursday or Friday due to their security breach, so, the developer tools are nowhere to be found.  What's the proper solution here? Add review queues to Android app I know there are some similar posts on adding review queues to the mobile web page. However, this is regarding the Stack Exchange Android app. I really would like to review posts and edits from the Android app, however this isn't included in the app yet. I'm not sure how it would be implemented; maybe there could be a button or something for review. Could we please see this? Why is spawning threads in Java EE container discouraged? One of the first things I've learned about Java EE development is that I shouldn't spawn my own threads inside a Java EE container. But when I come to think about it, I don't know the reason.  Can you clearly explain why it is discouraged?   I am sure most enterprise applications need some kind of asynchronous jobs like mail daemons, idle sessions, cleanup jobs etc.  So, if indeed one shouldn't spawn threads, what is the correct way to do it when needed? I use Stack Overflow a lot and have noticed a certain trend that I myself got caught up in at one time of using the phrase "I am having a problem" in place of "I have a problem."  I would use this phrase for an event in the future, for example, "I am having a steak dinner tonight," but for a problem that I need solved and am asking for a solution, I'd use "I have a problem..."   What would force us to use this phrase? Is it even valid English for the present tense?