I know this question has been asked multiple times. I've looked around a lot, but I can't seem to find an answer.  I did find this code . But it will not compile, and all the other answers I've seen have been about how to get a single processes cpu/ram usage.
I once had the task of determining the following performance parameters from inside a running application:   Total virtual memory available Virtual memory currently used Virtual memory currently used by my process Total RAM available RAM currently used RAM currently used by my process % CPU currently used % CPU currently used by my process   The code had to run on Windows and Linux. Even though this seems to be a standard task, finding the necessary information in the manuals (WIN32 API, GNU docs) as well as on the Internet took me several days, because there's so much incomplete/incorrect/outdated information on this topic to be found out there.  In order to save others from going through the same trouble, I thought it would be a good idea to collect all the scattered information plus what I found by trial and error here in one place.
Recording iPad screen using QuickTime I need to record a demo on my iPad's screen where I narrate what's going on but I also want the sounds from the iPad to be in the video. It seems that choosing the Mac Built-in Mic option causes only my voice to be in the video while choosing the iPad Mic option cause only the sounds from the iPad to be in the video. What can I do to put both in the video? I am currently trying to establish a clear picture of pure/mixed/entangled/separable/superposed states. In the following I will always assume a basis of $|1\rangle$ and $|0\rangle$ for my quantum systems. This is what I have so far:   superposed: A superposition of two states which a system $A$ can occupy, so $\frac{1}{\sqrt{2}}(|0\rangle_A+|1\rangle_A)$ seperable: $|1\rangle_A|0\rangle_B$ A state is called separable, if its an element of the (tensor)product basis of system $A$ and $B$ (for all possible choices of bases) entangled: $\frac{1}{\sqrt{2}}(|0\rangle_A|1\rangle_B+|1\rangle_A|0\rangle_B)$ is not a state within the product basis (again for all possible bases). mixed state: Is a statistical mixture, so for instance $|1\rangle$ with probability $1/2$ and $|0\rangle$ with probability $1/2$ pure state: Not a mixed state, no statistical mixture   I hope that the above examples and classifications are correct. If not it would be great if you could correct me. Or add further cases, if this list is incomplete.   On wikipedia I read about      Another way to say this is that while the von Neumann entropy of the whole state is zero (as it is for any pure state), the entropy of the subsystems is greater than zero.   which is perfectly fine. However I also read on wikipedia a criterion for :     Another, equivalent, criterion is that the von Neumann entropy is 0 for a pure state, and strictly positive for a mixed state.   So does this imply that if I look at the subsystems of an entangled state, that they are in a mixed state? Sounds strange... What would be the statistical mixture in that case?  Moreover I also wanted to ask, whether you had further illustrative examples for the different states I tried to describe above. Or any dangerous cases, where one might think a state of one kind to be the other? Evaluate the integral $\int_0^{2a}\int_0^\sqrt{2ax-x^2}\frac{\phi'(y)(x^2+y^2)x dxdy}{\sqrt{4a^2x^2-(x^2+y^2)^2}}$ Change the order of integration in:  $$\int_0^{2a}\int_0^\sqrt{2ax-x^2}\frac{\phi'(y)(x^2+y^2)x }{\sqrt{4a^2x^2-(x^2+y^2)^2}}dxdy$$ and hence evaluate it.    I changed the order of integration and got the limits $y=0$ to $a$ and $x=a-\sqrt{a^2-y^2}$ to $a+\sqrt{a^2-y^2}$. I then tried changing to polar coordinates, but it is only making the integrand more complex. How do favored classes work in Pathfinder? I'm working on creating a half-elf paladin character for a Pathfinder game.  Full disclosure: this is the first time I've tried creating a character; I've used ones other people created before.  In the text, it mentions something about "favored classes" I believe.  What is this? Is the latest version of Ubuntu 100% FREE How to get old Mapping and Voronoi nodes into Blender 2.82? I noticed that some nodes changed significantly with Blender 2.81 and 2.82. Now I can't follow older tutorials, because some have different options than me.   Voronoi Node is totally different Mapping Node is missing it's maximum / minimum clipping controls   Q: How to get these older nodes back into Blender 2.82? Why can't you use the keyword 'this' in a static method in .Net? I'm trying to use the this keyword in a static method, but the compiler won't allow me to use it.  Why not? What methods of suicide cause the least amounts of collateral damage? CK2 is a big game with lots of variables, so I'll stick to adding them upon being requested to minimize the hassle.  Anyway, let's say that you have a lot of children and the oldest one claims all the land according to laws of succession. After the father dies, the circumstances will obviously piss off a lot of people (in my case that would be 6 out of 8 vassals and 4 siblings with an opinion of -50 and below one of which is a sister married to the Basileus of the Byzantine friggin' Empire, a case of excommunication, 4 failed assassination attempts under 3 years... and lots and lots of vikings). Let's also say that the current playable character is completely incompetent compare to the next sibling in line.  So, what would be the most optimal methods to off myself without further screwing over the countryside so the next heir in line has to fix it (if we assume that said heir is actually capable of doing so)?  This is my list of DLCs (not including music and unit packs):   Charlemange Legacy of Rome Sword of Islam The Republic Way of Life Get width of a given text as length Displaying previous and current year with dynamic text? Now let set $A$ be arbitrary. So set $A$ exists. Using axiom of pairing $\{A\}$ exists. And then using axiom of regularity, we can argue that $A \notin A$. So, there is some $x$ such that $x \notin A$. Is this a valid proof ? Thanks Biblatex/biber fails with a strange error about missing recode_data.xml file I'm trying to use biblatex and when I compile my document I get an error like the following:  Windows  data source C:\Users\&lt;username&gt;\AppData\Local\Temp\par-5061756c\ cache-890efc00b3ca6b775c7d44a325c1349fb2a3a3bd\inc\lib/Biber/LaTeX/recode_data.xml not found in .   Mac  data source /var/folders/v2/rld0ls7d2935gkvqv5hfr1x00000gn/T/par-616c616e/ cache-cdd483146f82a9655ce063f848d5139480fbf872/inc/lib/Biber/LaTeX/recode_data.xml not found in .   Linux  data source /tmp/par-6963617269756d/cache-f37ab610b7d79b2720a8ee3732849c6821705520 /inc/lib/Biber/LaTeX/recode_data.xml not found in . I came across the following question:     If 3 boys can paint a fence in 2 days what part of the job can     be completed by two boys in 1 day?   The answer to this problem is $\frac13$.  I can't manage to tackle this problem. Could anyone tell me what would be the quickest way to solve this problem (This question is a standardized test based question). Any help would be appreciated. Legally possible to re-create/remake an old game? Recently I started remaking an old game on Unity. Basically I want to remake an old RPG that was released for Playstation 1. I'm not ripping anything from the old game, all the assets are being created by me. I'm creating everything from the scratch, music, 3D models, gameplay however I will keep the (copyrighted ?) names, I will try to create the characters and maps/levels as they were in the original version of Playstation 1 but with better graphics.  I'm not planning on selling it or adding in on a platform like Steam (for obvious reasons, copyrights etc), just giving it for free. But I wanna know when I will finish the development, can I share the game on public with other people so they can download it?  Can the company that made the original game sue me/fine me because of copyrights reasons even though I'm not planning on selling for money?  tl;dr Remake an non-profit game of PS1 from the scratch, can the company that holds the copyrights of the game sue me/fine me? I know that there is no vector space having precisely $6$ elements. Does every set have a group structure? What does this mean? "Your UK visa application has been issued" Your UK visa application has been issued.      PLEASE DO NOT GO TO THE VISA APPLICATION CENTRE BEFORE THEY CONTACT YOU.      You will be contacted by the Visa Application Centre when your documents are ready for collection, or have been dispatched via courier where this is relevant.       You are reminded that you should avoid making travel plans until you have collected your passport, as the outcome of your visa application is not final until you receive your passport.      Please ensure you check the details on your visa when collecting your passport. If you need to contact us you can do so via our International Enquiry Service at www.gov.uk/contact-ukvi-outside-uk      Kind regards,      UK Visas and Immigration   British Embassy Abu Dhabi     Your UK visa application has been issued.   I know words like processed, forwarded, received, refused but never heard anything like that, so I am confused. Can a mangaka continue another mangaka's manga? There are plenty of manga that never had an ending for many reasons. For example, High School of the Dead's mangaka, Daisuke Satou, . Some mangaka also cannot continue their work because of health problems, as well as other reasons. Say the original mangaka either prepared or did not prepare an ending himself/herself, can another mangaka continue their work? Has this ever happened before? "Speed" of Gravity and Speed of Light Irreducibility of a polynomial if it has no root (Capelli) Let $F$ be a field of arbitrary characteristic, $a\in F$, and $p$ a prime number. Show that $$f(X)=X^p-a$$ is irreducible in $F[X]$ if it has no root in $F$.   This  to a related question mentions the result is due to Capelli.  I can prove the result if $F$ has characteristic $p$ as follows.  Suppose $f$ is reducible: $f(X)=g(X)h(X)$ with $g(X)$ an irreducible factor of degree $m$, $1\le m&lt;p$. Then if $\alpha$ is a root of $g$ in some extension field $K$ of $F$, we have $$f(X)=X^p-\alpha^p=(X-\alpha)^p$$ so its divisor $g(X)$ must be of the form $(X-\alpha)^m$. Since the coefficient of $X^{m-1}$ in $g$ is in $F$, we have $m\alpha\in F$.  So $\alpha\in F$ because $m$ is invertible modulo $p$.  How would you show the result in other characteristics? Missing new file in Ubuntu 13.04 The New file operation is missing in Ubuntu 13.04. How can I fix it?  I have only &quot;New Folder&quot;. How can I add the New File option again?