What algorithm is used to pick which comments are shown and which are hidden?
What determines the number of comments that are displayed?
Getting random row through SQLAlchemy Index of the center of a group in the group is not a prime number The question is to prove index of $Z(G)$ in $G$ is not a prime number.    We know that $|G:Z(G)|=|G:C_G (x)||C_G (x):Z(G)|$ where $C_G (x)$ means centralizer of $x \in G$  I want to mention that we do not want to use $G⁄Z(G)$ theorem.   We may assume that $|G:Z(G)|=p$ where $p$ is a prime. Winsock2's select() on fd 0 (stdin) fails What happens to waves when they hit smaller apertures than their wavelenghts? While trying to ask a question, I got the error message     This question body does not meet our quality standards. Please make sure that it completely describes your problem - including what you have already tried - and is written using proper grammar.    Why am I getting this message? What can I do to get the system to accept my question? Can you be more specific? What are good resources on how to ask high-quality questions?      For more information, see  in the . What is so special about speed of light in vacuum? I will try to be as explanatory as possible with my question. Please also note that I have done my share of googling and I am looking for simple language preferable with some example so that I can get some insight in this subject.  My question is what is so special about $c$? Why only $c$. Its like chicken and egg puzzle for me. Does Einstein reached to $c$ observing light or does he got to light using some number which turned out equal to $c$.   Why is $c$ not relative. If something has zero rest mass like a photon why they only travel at $c$ in vacuum and not with $c+1$ or $c-1$? I know the so-called textbook definition of unit tests and integration tests.  What I am curious about is when it is time to write unit tests... I will write them to cover as many sets of classes as possible.  For example, if I have a Word class, I will write some unit tests for the Word class.  Then, I begin writing my Sentence class, and when it needs to interact with the Word class, I will often write my unit tests such that they test both Sentence and Word... at least in the places where they interact.  Have these tests essentially become integration tests because they now test the integration of these 2 classes, or is it just a unit test that spans 2 classes?  In general, because of this uncertain line, I will rarely actually write integration tests... or is my using the finished product to see if all the pieces work properly the actual integration tests, even though they are manual and rarely repeated beyond the scope of each individual feature?  Am I misunderstanding integration tests, or is there really just very little difference between integration and unit tests? Changing Quotes What is the term for changing a quote? For example, changing 'Who knows what evil lurks in the hearts of men?' to 'Who knows what mischief lurks in the hearts of children?' Simulating group_concat MySQL function in Microsoft SQL Server 2005? I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :) I installed Ubuntu on my Windows 7 Sager laptop using Wubi. Hibernate (i.e. suspend to disc) is not an option from the power icon, only suspend, shutdown, etc. Hibernate is also not an option from my battery/lid close options. I understand that hibernation is disabled by default in Ubuntu 12.04. I tried running pm-hibernate but I get the following message:  Looking for splash system... none  s2disk: Snapshotting system   and then the computer just hangs with a black screen. According to the documentation  if this fails then I can't enable hibernate but it offers no help in making pm-hibernate succeed.  Could swap be my problem? It looks like I have very small swap:  user@ubuntu:~$ cat /proc/swaps Filename                Type        Size    Used    Priority /host/ubuntu/disks/swap.disk            file        262140  0   -1   The advice on  is only for the author's set up (e.g. I don't have an Ubuntu install disk since I used Wubi) and he says that 'INFO: This will not work for 12.04, resume from hibernate work differently in 12.04.'  Any advice? I really need to get hibernate working to use my laptop as a, er, laptop.  Thanks real memory usage Ignoring programming style and design, is it "safe" to call delete on a variable allocated on the stack?  For example:     int nAmount;    delete &amp;nAmount;   or  class sample { public:     sample();     ~sample() { delete &amp;nAmount;}     int nAmount; } $n \mid (a^{n}-b^{n}) \ \Longrightarrow$ $n \mid \frac{a^{n}-b^{n}}{a-b}$ How does one prove that if $n \mid (a^{n}-b^{n}) \ \Longrightarrow$ $ \displaystyle n \mid \frac{a^{n}-b^{n}}{a-b}$ where $a,b, n \in \mathbb{N}$.  What i thought of is to consider $$(a-b)^{n} \equiv a^{n} + (-1)^{n}b^{n} \ (\text{mod} \ n)$$ and if we suppose that $n$ is odd then we have, $$(a-b)^{n} \equiv a^{n} -b^{n} \ (\text{mod} \ n)$$ and since $n \mid (a^{n} - b^{n})$ we have $$(a-b)^{n} \equiv 0 \ (\text{mod} \ n) $$  I think i am far away from the conclusion of the problem, but this is what i could work on regarding the problem. Classification of automorphisms of projective space With the Superman lore, we know that light from a yellow star gives him his powers, light from blue stars makes him stronger, and light from red stars weakens him.  However, what happens if he is near a white dwarf, or a neutron star?  Has there been any evidence of Superman visiting a star system that wasn't red/yellow/blue? How to mount and unmount hard drives under Windows (the unix way) I have two checkboxes in a lightning component, when we click on the first checkbox it marks true to the other checkbox, it works well only with the UI tags but doesn't work when I convert it to lightning tag  &lt;ui:inputCheckbox aura:id="box3" change="{!c.selectAll}"/&gt;  &lt;ui:inputCheckbox aura:id="boxPack" value=""                                                          change="{!c.checkboxSelect}"/&gt;   below are the lightning tags  &lt;lightning:input type="checkbox" aura:id="box3" onclick="{!c.selectAll}"/&gt;  &lt;lightning:input type="checkbox" aura:id="boxPack" value=""                                                          onclick="{!c.checkboxSelect}"/&gt;   controller  checkboxSelect: function(component, event, helper) {         // get the selected checkbox value           var selectedRec = event.getSource().get("v.value");         // get the selectedCount attrbute value(default is 0) for add/less numbers.          var getSelectedNumber = component.get("v.selectedCount");         // check, if selected checkbox value is true then increment getSelectedNumber with 1          // else Decrement the getSelectedNumber with 1              if (selectedRec == true) {             getSelectedNumber++;         } else {             getSelectedNumber--;         }         // set the actual value on selectedCount attribute to show on header part.          component.set("v.selectedCount", getSelectedNumber);     },      selectAll: function(component, event, helper) {         //get the header checkbox value           var selectedHeaderCheck = event.getSource().get("v.value");         // get all checkbox on table with "boxPack" aura id (all iterate value have same Id)         // return the List of all checkboxs element          var getAllId = component.find("boxPack");         // If the local ID is unique[in single record case], find() returns the component. not array            if(! Array.isArray(getAllId)){             if(selectedHeaderCheck == true){                  console.log('true');                 component.find("boxPack").set("v.value", true);                 component.set("v.selectedCount", 1);             }else{                 component.find("boxPack").set("v.value", false);                 component.set("v.selectedCount", 0);             }         }else{             // check if select all (header checkbox) is true then true all checkboxes on table in a for loop               // and set the all selected checkbox length in selectedCount attribute.             // if value is false then make all checkboxes false in else part with play for loop              // and select count as 0              if (selectedHeaderCheck == true) {                 for (var i = 0; i &lt; getAllId.length; i++) {                     component.find("boxPack")[i].set("v.value", true);                     component.set("v.selectedCount", getAllId.length);                 }             } else {                 for (var i = 0; i &lt; getAllId.length; i++) {                     component.find("boxPack")[i].set("v.value", false);                     component.set("v.selectedCount", 0);                 }             }          }        }, Where can the viewport clipping parameters be changed? Zooming in to inspect texture details in 3D view clips some closer faces like shown in the image. It's not the camera view so changing camera settings doesn't help.   Where can the distance to the clipping plane be adjusted? Coprime cofactors of n'th powers are n'th powers, up to associates, for Gaussian integers & UFD I'm trying to do the following exercise from Neukirch's Algebraic Number Theory (exercise 2, $\S 1$, chapter 1):  Show that, in the ring $\mathbb{Z}[i]$, the relation $\alpha\beta=\varepsilon\gamma^n$, for $\alpha,\beta$ relatively prime numbers and $\varepsilon$ a unit, implies $\alpha=\varepsilon^{\prime}\xi^n$ and $\beta=\varepsilon^{\prime\prime}\eta^n$, with $\varepsilon^{\prime},\varepsilon^{\prime\prime}$ units.  My attempt: once $\alpha$ and $\beta$ are relatively prime, $\alpha\nmid\beta$ and $\beta\nmid\alpha$. Therefore $N(\alpha)$ and $N(\beta)$ are relatively prime too (where $N(a+ib)=a^2+b^2$). Therefore,  $$N(\alpha\beta)=N(\alpha)N(\beta)=N(\varepsilon)N(\gamma^n)=N(\gamma)^n=(p_1\cdot\ldots\cdot p_r)^n=p_1^n\cdot\ldots\cdot p_r^n$$  And once $N(\alpha)$ and $N(\beta)$ are relatively prime, we have (if necessary, we reorder the $p_i$'s):  $$N(\alpha)=p_1^n\cdot\ldots\cdot p_k^n=(p_1\cdot\ldots\cdot p_k)^n=N(\xi)^n=N(\xi^n)$$ and $$N(\beta)=p_{k+1}^n\cdot\ldots\cdot p_r^n=(p_{k+1}\cdot\ldots\cdot p_r)^n=N(\eta)^n=N(\eta^n)$$  And the result follows.  But I'm not sure about one step. It is $\alpha$ and $\beta$ relatively prime $\Rightarrow$ $N(\alpha)$ and $N(\beta)$ relatively prime. I know that if $\alpha|\beta$ then $N(\alpha)|N(\beta)$, but the previous assertion is not necesseraly true, and if it is, and don't know how to prove it. If it is true, the result follows, unless I made something wrong in the rest of the proof.  That's it. If you know another way of doing the exercise, please show me. Why does volatile exist? What does the volatile keyword do? In C++ what problem does it solve?  In my case, I have never knowingly needed it.