OpenCV 2.4.6.1: Error while grabbing frame from camera
Getting opencv error in c++
PHP Codes are displaying in HTML Showing that $\mathbb{R}$ and $\mathbb{R}\backslash\mathbb{Q}$ are equinumerous using Cantor-Bernstein I need to prove that $\mathbb{R}\backslash\mathbb{Q} \sim \mathbb{R} $  Using Cantor-Bernstein, need to show an injection from $\mathbb{R}\backslash\mathbb{Q}$ to $\mathbb{R}$ and from $\mathbb{R}$ to $\mathbb{R}\backslash\mathbb{Q}$.    $\mathbb{R}\backslash\mathbb{Q}$ is a subset of $\mathbb{R}$ so only need to show injection from $\mathbb{R}$ to $\mathbb{R}\backslash\mathbb{Q}$ to complete the proof.    Possible injection: $f:\mathbb{R}\to \mathbb{R}\backslash\mathbb{Q}$ defined as $f(x) = \pi x$ if $x$ is not a multiple of $\pi$; otherwise $f(x) = \sqrt{2} x$.    Not sure if $f$ actually is an injection... Can a hyphen be used without anything on the right side? How to create Mist in Blender I already tried several ways to create Mist in Blender, but it never worked 100%. I use Blender 2.78 and I want to create Mist like in this scene here.  What are the exact steps?     Here is what I have tried so far:  I already tried this:  but it simply did not work .. I dont know why.  (EDIT: I managed to fix it: Check out this graphic:   Until now I already used objects successfully as Mist-creators (Volume Scatter under Volume Material). The bad thing about using Objects as Mist-creator is that they dont have an endless mist range + the mist can not be bright. Normally it appears grayish result is bad..  Check it out  Please help InDesign: How do I automatically align the bottoms of different columns of text boxes to the same height as the one with the most text? In InDesign, I have some filled text boxes, sized by columns, with the one on the left being three columns wide.   The wide text box is most likely to contain the most text (it's an invoice template).  I will use the 'Fit frame to content' button on the Selection Tool toolbar for automatically vertically resize it to fit the containing text.  How do I make the other three smaller text frames automatically adjust to the same height as the big (and longer) text box? Which resources are available to self-study GAP? Background: This year I'll do another Group Theory course ( Open University M336 ). In the past I have used Mathematica's AbstractAlgebra package but (although visually appealing ) this is no longer sufficient (i.e. listing subgroups of $S_4$ takes ages). So, I want to learn more about GAP. I worked through beginner tutorials that I found via the . Currently, I am not making much progress with GAP. The  does not help me much at this stage.  Question: Which resources are available to self-study GAP? How does one become proficient in GAP? What ( books, tutorials ) should you study? Assigning row number for sorted table by column in QGIS Field calculator has a great function under &quot;Records&quot; called &quot;$rownum&quot; which returns (assigns) the number of the current row. Is there a way to make it work together with sorting? Let's say I want to sort table by column &quot;length&quot; and get the order (sequence) of lines by length from shortest to longest. I know I can use some office spreadsheet software easily for this to sort by column and populate new column with order (sequence). But I would prefer to do the whole job in QGIS. As workaround there is also  - using mmqgis plugin and function modify/sort and after that use &quot;$rownum&quot; on the new saved file. If cooking meat kills bacteria, and bacteria are responsible for problems with eating meat which has been left out, then why is it dangerous to eat meat which has been left out at room temperature and then thoroughly cooked?   mentions that "Even if the bacteria is dead, toxins can remain if the food was out too long, causing problems".  However, there's no further detail given.  Are these toxins as dangerous as the bacteria themselves?  How long does meat have to be left out to accumulate a dangerous level of toxins and thus be dangerous even if thoroughly cooked?  Are these toxins the reason for the usual guideline of keeping meat unrefrigerated for a maximum of 2 hours?  update  The revelation, courtesy of Aaronut, that e. coli is actually dangerous because of its toxins — which cannot be denatured at temperatures which will leave meat in an edible state — has pretty much answered this question.  And also given me further incentive to stop eating meat altogether :)  Our discussion (see the comments on hobodave's answer) has progressed into the realm of microbiology.  Some highlights from my ongoing research:  .  These seem to be the reason for the importance of keeping meat at a high temperature for a period of time.  .  This also provides fascinating insight into how bacteria evolved immunity to antibiotics.  Fungi. Why do we even need the "delete[]" operator? This is a question that's been nagging me for some time. I always thought that C++ should have been designed so that the delete operator (without brackets) works even with the new[] operator.  In my opinion, writing this:  int* p = new int;   should be equivalent to allocating an array of 1 element:  int* p = new int[1];   If this was true, the delete operator could always be deleting arrays, and we wouldn't need the delete[] operator.  Is there any reason why the delete[] operator was introduced in C++?  The only reason I can think of is that allocating arrays has a small memory footprint (you have to store the array size somewhere), so that distinguishing delete vs delete[] was a small memory optimization. Is it possible to switch from one area of graduate study to another in US universities? For example, suppose someone has enrolled in a computer science phd program. Can he switch over to math(or physics) phd program in the same school later?(or say from applied mathematics to pure mathematics?)  What are the steps for doing for doing that? What's the name of each pseudo-rectangle in a spherical surface? If apostrophe + s is the acceptable way of denoting a genitive in English, is it possible that possessive pronouns, such as hers, ours and yours, started life as possessive adjectives with apostrophe + s?  E.g. her's, our's, your's, their's? Perhaps, even his' ? Its and my obviously stick out from this tempting pattern.  Is there any evidence that this might be the case, or is the 's completely unrelated? How can we remove the launcher that come with Unity on this new Ubuntu version ? This question is a possibly harder version of: .  Question.  Let $f,g :\mathbb R\to\mathbb R$, such that \begin{align} f(x-y)=f(x)\, g(y)-f(y)\, g(x), \tag{1}\\ g(x-y)=g(x)\, g(y)+f(x)\, f(y), \tag{2} \end{align} for all $x,y \in \mathbb{R} $. If $g$ is continuous at $x=0$ and not identically zero, then there exists an $\alpha\in\mathbb R$, such  $$ f(x)=\sin \alpha x\quad\text{and}\quad g(x)=\cos \alpha x. $$ Is there a pair of discontinuous $f$ and $g$ satisfying $(1)$ and $(2)$?  Update. If $\ell :\mathbb R\to\mathbb R$ is a linear functional over $\mathbb Q$ (i.e., $\ell(qx+ry)=q\ell(x)+r\ell(y)$, for all $x,y\in\mathbb R$ and $q,r\in\mathbb Q$), then $$ \sin\big(\ell(x)\big), \quad \cos\big(\ell(x)\big), $$ satisfy $(1)$ and $(2)$. Discontinuous such functionals do exist, and they are obtainable using Zorn's Lemma (equivalently the Axiom of Choice.) This takes care of the second question. In Peter Jackson's film The Fellowship of the Ring, when the Council of Elrond takes place it shows a total of 22 members:    We all know the names of the ones who were part of the Fellowship, but I want to know who are the rest of the people in the council. Who are the elves that came with Legolas? The men next to the dwarves? The three old men sitting next to Boromir? Or the two elves next to Aragorn?  Starting from left to right:   Frodo Gandalf Elf Elf Legolas Elf Old Man Old Man Dwalin Gloin Gimli Nori Old Man Boromir Old Man Old Man Elf Elf Aragorn Elladan Elrond Elrohir What makes Stealing Signs wrong? How to find the foreach index? When I run this command :  apt install libkf5*   I get the following error :  Unable to locate package libkf5*    I'm sure that the packages whose names start with libkf5 exist (tab-completion says so) . So the problem is not about the absence of those packages.(Note the asterisk at the end of that error message , the wildcard's not working at all) I use apt v.1.9. Thanks in advance. Sorting an Array of Objects in PHP In a Specific Order I have two arrays in PHP. The first array ($author_array) is comprised of user_ids in a particular order, like so: (8, 1, 6)  The second array ($user_results) is comprised of an array of objects like so:  Array (     [0] =&gt; stdClass Object         (             [ID] =&gt; 1             [user_login] =&gt; user1         )     [1] =&gt; stdClass Object         (             [ID] =&gt; 6             [user_login] =&gt; user6         )     [2] =&gt; stdClass Object         (             [ID] =&gt; 8             [user_login] =&gt; user8         ) )   I'd like to "sort" the second array so it's in this order, which matches the order of the values in the first array of (8, 1, 6). So it'd look like this:  Array (     [0] =&gt; stdClass Object         (             [ID] =&gt; 8             [user_login] =&gt; user8         )     [1] =&gt; stdClass Object         (             [ID] =&gt; 1             [user_login] =&gt; user1         )     [2] =&gt; stdClass Object         (             [ID] =&gt; 6             [user_login] =&gt; user6         ) )   I'm weak on data structures. How could I do this? :-)  Thanks in advance for your help!  -Bob Puzzling Enumerable.Cast InvalidCastException The following throws an InvalidCastException.  IEnumerable&lt;int&gt; list = new List&lt;int&gt;() { 1 }; IEnumerable&lt;long&gt; castedList = list.Cast&lt;long&gt;(); Console.WriteLine(castedList.First());   Why?  I'm using Visual Studio 2008 SP1.