Compiler error "missing ';' before 'type'" and unsure why
error C2143: syntax error : missing ';' before 'type'
What are these dark spots in my pictures? I've been seeing these dark spots in my pictures. They appear a lot more on some pictures than others, but they are in the same place in the image and independent of the lens being used. Is this dust? I've also heard that you can get oil spots on the sensor.  The image is from a Nikon D7000. Evaluate $\int \cos(3x) \sin(2x) \, dx$. Evaluate the indefinite integral    \begin{align} \int \cos(3x) \sin(2x) \, dx \end{align}   Please see my work attempt as my answer below. Why Does Harry Have a Scar When Avada Kedavra Leaves No Trace? Why does Harry have a scar when Avada Kedavra leaves no trace?     ‘The Muggle authorities were perplexed. As far as I am aware, they do not know to this day how the Riddles died, for the Avada Kedavra Curse does not usually leave any sign of damage ... the exception sits before me,’ Dumbledore added, with a nod to Harry’s scar.   Half-Blood Prince - page 343 - Bloomsbury - chapter 17, A Sluggish Memory   What caused Harry to retain a scar from Avada Kedavra, when no one else in know history showed any signs of cause of death when Avada Kedavra was used?  What caused Harry's scar?  I'd love an answer based in canon, such as the books, interviews with J.K. Rowling, or Pottermore. How to fix AppArmor `could not open` error when installing php+mysql? How to best respond to a request to send a passport scan by unsecured email? It is not uncommon for travel or holiday accommodation companies to ask for a scan of your passport by email. Sometimes local laws require them to keep a record of the passport numbers of all visitors. I'm happy to provide that information but you usually have to send it in an unsecured email, which may have consequences .  Could these companies be more responsible, and provide a public cryptographic key at least?  Are there other steps you should take to protect yourself, if you do send by unsecured email? How to check iOS version? Should I upgrade my body or lens first? I have an entry-level Nikon DSLR, and I cant decide if I should upgrade my camera body or upgrade from a  AF-S DX Nikkor 18-200mm to whatever else might be recommended? My account has been temporarily suspended; what does that mean? My account has been , besides the following restrictions:  an account will be locked at 1 reputation the user page will have a visual indication that the account is in timed suspension, and for how long the account holder will be unable to vote, ask, answer or comment  What else does timed suspension prevent me doing? For example, can I still edit my own posts or delete content? And what is a network-wide suspension? UI annoyances in the suggested edit review on Stack Overflow On a fresh install of TL 2018, on Linux, no tikz graph drawing libraries can be found.  The files, e.g. texlive/2018/texmf-dist/tex/generic/pgf/graphdrawing/tex/pgflibrarygraphdrawing.trees.code.tex are there.  \documentclass{scrartcl}   \usepackage{tikz} \usetikzlibrary{graphdrawing} \usegdlibrary{trees}    \begin{document}  Hello World  \end{document}   Compiling with lualatex yields   ! Package pgf Error: Graph drawing library 'trees' not found. How to remove duplicate lines inside a text file? A huge (up to 2 GiB) text file of mine contains about 100 exact duplicates of every line in it (useless in my case, as the file is a CSV-like data table).  What I need is to remove all the repetitions while (preferably, but this can be sacrificed for a significant performance boost) maintaining the original sequence order. In the result each line is to be unique. If there were 100 equal lines (usually the duplicates are spread across the file and won't be neighbours) there is to be only one of the kind left.  I have written a program in Scala (consider it Java if you don't know about Scala) to implement this. But maybe there are faster C-written native tools able to do this faster?  UPDATE: the awk '!seen[$0]++' filename solution seemed working just fine for me as long as the files were near 2 GiB or smaller but now as I am to clean-up a 8 GiB file it doesn't work any more. It seems taking infinity on a Mac with 4 GiB RAM and a 64-bit Windows 7 PC with 4 GiB RAM and 6 GiB swap just runs out of memory. And I don't feel enthusiastic about trying it on Linux with 4 GiB RAM given this experience. How is arccos derived? Stupid question but I need to understand:  If $ \cos = \dfrac{\text{adjacent}}{\text{hypotenuse}} $  What is arcosine? $ \text{adjacent} \cdot \text{hypotenuse}$? Is this the same for arcsine and arctangent? $f: \mathbb{R} \to \mathbb{R}$ that takes each value in $\mathbb{R}$ twice Does there exist a continuous function $f: \mathbb{R} \to \mathbb{R}$ that takes each value in $\mathbb{R}$ exactly two times? How do I push amended commit to the remote Git repository? When I've worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the source code. So I do the amend command to replace the previous commit:  &gt; git commit --amend   Unfortunately the commit can't be pushed back to the repository. It is rejected like this:  &gt; git push origin To //my.remote.repo.com/stuff.git/  ! [rejected]        master -&gt; master (non-fast forward) error: failed to push some refs to '//my.remote.repo.com/stuff.git/'   What should I do? (I can access the remote repository.) In which countries are the visitor's first name and last name compulsory? My name consists of just a first name and no surname.  Will there be a problem regarding my name in the country I visit with a tourist or employment visa? Are there countries in the world where this might be a problem? Should I capitalise "or" between examples? On this site, there are often many different options as an answer, for example both with and without the Oxford comma.  When giving multiple options, should I capitalize the word "or" between them?  Option 1:     Eggs, butter and milk are dairy products   Or   Eggs, butter, and milk are dairy products     Option 2:     Eggs, butter and milk are dairy products   or   Eggs, butter, and milk are dairy products     Notice in Option 1 the "or" is capitalised. In Option 2 the "or" isn't. If I have a sequence of .obj (or any other readable format) files created from my own simulation code (say cloth simulation), can I use the rendering capabilities of blender to generate a video?   Is there a way to set the material properties for frame 1 and use the same or rest of the frames while the corresponding meshes are imported afresh from that ones I provide? Integrate $\int \frac{25 - x^2}{x^4} \operatorname d\!x$ I don't understand why the interior of $\mathbb{Q}$ in $\mathbb{R}$ is empty, since, for every ball with the center being a rational number, given an $\epsilon&gt;0$, I can find an infinite sequence of rational numbers that approach this point. For example, take $\frac{1}{2}$. The sequence $\frac{1}{2}+\frac{1}{n}$ can be made as close as I want to the number $\frac{1}{2}$, therefore I can always have open balls with center $\frac{1}{2}$ such that there are rationals inside it. I've installed Process Lasso and in All processes tab, set all affinities to 1-7, meaning that all the processes can be start on all my CPUs except the first one. Yet, there is a huge load on my first CPU.   I personally have no clue what's happening here and really appreciate any help.  My system is:   Intel core i7 - 4720 HQ  2.6 GHz upto 3.6 Windows 10 (64 bit) NVidia GTX 950 M   This screenshot, shows the software's interface. Those 8 green bars on upper right show my CPU usage. Also the column called Rules, indicates the affinities on the processes.       PS: These are screenshots that show the more familiar Task Manager and Resource Monitor. I've sorted all with respect to their CPU usage. Note that the overall CPU usage is just fine (less than 30% most of the time), but in Resource Monitor, same as the Process Lasso, it's obvious that that most of the load is on CPU0 and the others are almost free.  Also I found out that my total CPU usage, is actually more than all my processes altogether! The orange line in Resource Monitor picture, shows the amount of CPU usage of all my processes. (I did the same in safe mode. Orange line, exactly coincides the total usage in safe mode. So I'm suspecting that something is happening in my normal boot.)