Why im not getting the response back from this factory function in angularJS
How do I return the response from an asynchronous call?
If $x^n + a_{n-1}x^{n-1} + ... + a_0 = 0$ has a rational root, then such root is an integer Let $n &gt; 0$ and let $a_{n-1}, ..., a_0$ be integers. Prove that, if $x^n + a_{n-1}x^{n-1} + ... + a_0 = 0$ has a rational root, then such root is an integer.   I understand that posting questions without showing your work is frowned upon, but I don't know where to start with this one.. thanks in advance. Order posts by tags count? I am trying to order posts by tag count. I want to order posts with no tags first and posts with highest count last.  I tried and got posts with no tags only.       $tags = get_tags();     $tag_ids = wp_list_pluck( $tags, 'term_id' );      $args1 = array (        'orderby'          =&gt; 'DEC',        'post_type'        =&gt; 'post',        'pagination'       =&gt; true,        'posts_per_page'   =&gt; '1',        'tag__not_in'      =&gt;  $tag_ids,        'meta_key'         =&gt; '_thumbnail_id',     );   How do I order posts based on the tags count? How do I check if a file exists in Java? How did Rita know she lost the power? In Edge of Tomorrow, Emily Blunt's character, Rita Vrataski, had the time-resetting power previously.  She details the backstory of how she gained it, and how she lost it.  However, how did she know when she lost the power?  It's only triggered when the wielder dies.  Obviously she didn't die after losing the power, so how did she know the power was gone? Two seasonal periods in ARIMA using R I'm currently using R to predict a time series with these instructions:  X &lt;- ts(datas, frequency=24) X.arima &lt;- Arima(X, order=c(2,1,0), seasonal=c(1,1,1)) pred &lt;- predict(X.arima, n.ahead=24) plot.ts(pred$pred)   As you can see I've data each hour, and I chose the seasonal period of 24 (one day).  I would like to improve my forecasting using an additional seasonal period in order to include the seasonal component of the week (seasonal length of 7*24=168 data)  Is there any method for this? How do you do it?  UPDATE: I've read  (your) blog page, maybe can I use the external regressors to simulate a second seasonal period? What is the best way to animate the camera path? I'm modeling a car driving along a road(speeds up, slows down, and stops at traffic lights to wait till the lights turn green, etc.) What is the best way to animate the camera path for the following scenario?   The camera starts moving from point A, and it takes 500 frames to get to point B. During this 500 frames, the camera first gradually speeds up, then moves at a constant speed, and finally slows down to a complete stop at point B. The next 50 frames, the camera will stay at point B. From frame 551, it takes another 500 frames to get to point C from point B. The camera experiences the same motion as described in #1 (speeds up, constant speed, slows down, then stop.) Again, the camera will stay at point C for another 50 frames.  Point C to D is a curve path ( added using Shift + A -> add path). I want the camera to move along the path from frame 1101 to frame 1200. The camera should have the same motion as before(speeds up, constant speed, slows down, then stop.)   What is the best way to animate the camera path in this case? Is there any Python scripts available and can be applied to case like this? Thank you all in advance for your replies. Show group of order $4n + 2$ has a subgroup of index 2. Let $n$ be a positive integer. Show that any group of order $4n + 2$ has a subgroup of index 2. (Hint: Use left regular representation and Cauchy's Theorem to get an odd permutation.)  I can easily observe that $\vert G \vert = 2(2n + 1)$ so $2 \mid \vert G \vert$ and 2 is prime. We have satisfied the hypothesis of Cauchy's Theorem so we can say $G$ contains an element of order 2.  This is where I am stuck  I am confused about how the left regular representation relates to the group. So my understanding at this point is that every group is isomorphic to a subgroup of some symmetric group. My question: is the left regular representation $\varphi : G \to S_G$ an isomorphism? where $G \cong S_G$ or is $S_G$ the same thing as $S_{\vert G \vert}$ and $\varphi$ is only an injection? I'm using Dummit and Foote for definitions.  I saw an argument online that said that since we have an element of order 2, there is a $\sigma \in S_G$ of order 2, but it is a product of $2n + 1$ disjoint 2-cycles. I don't understand how they could claim this and tried working it out on my own but didn't get there. -- They then went on to use the parity mapping $\varepsilon : S_G \to \{\pm1\}$ and since we have an odd permutation $\sigma$, we have $[S_G:\text{ker }\varepsilon] = 2$. I understood their computation but not how that directly shows that $G$ has a subgroup of order 2? unless $G \cong S_G$ because of how left regular representation is defined. (but again, I'm not understanding that concept very well yet.)  So, to be clear about my questions:   What is meant by left regular representation, is it an isomorphism or just an injection? and how would it be used here. If it is an isomorphism, the argument online starts to make more sense, but how can they say that since $\sigma$ is even, it is made up of $2n + 1$ disjoint transpositions? If you have a full, proof, I'd appreciate it, but good hints are just as good!   Thanks you! Adding user to a group - Why had to reboot? I was not able to access the VirtualBox shared folder, so I made the user part of the vboxsf group. But, still not able to access it. Rebooting the guest resolved the problem. Is it a bug? A reboot is not required to add a user to a group.   sudo usermod -a -G vboxsf praveensripati   There was similar query .  I am using 11.10 and don't remember seeing similar behavior in 11.04. How can I determine whether a 2D Point is within a Polygon? Radical of $\mathfrak{gl}_n$ I find it intuitive enough that the radical of $\mathfrak{gl}_n\mathbb F$ is the scalar matrices, but I have trouble finding an easy, but complete proof:  Proof. Let $\mathfrak s$ denote the scalar matrices. Clearly $\mathfrak s\subset\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$. Suppose that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is generated by more than one element, so that $X\in\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$, but $X\notin\mathfrak s$. We can change basis such that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is upper-triangular. (The change of basis leaves the scalar matrices invariant.) Then $X$ is upper-triangular.  I want to conclude that there exists a $Y\in\mathfrak{gl}_n\mathbb F$ s.t. $[X,Y]$ is not upper-triangular. How can I see that $Y$ always exists, except by waving hands? How do I get the MAX row with a GROUP BY in LINQ query? How to make a Snap application (ksnip) appear in "open with other application" context menu? For editing screengrabs, I prefer to use , since  was no longer installable without hassles on Ubuntu 18.04 and 20.04 However ksnip is available as a Snap App on my 20.04 ○ → snap list | grep ksnip ksnip                    1.8.0                       265    latest/stable    dporobic                 Unfortunately I have to start ksnip from the command line, then use the File-Open Dialog to pick a screengrab/PNG, then edit it in ksnip. This is should be easier. What I want is to use Nautilus File manager, then select the &quot;Open with other Application&quot; context menu item to select ksnip, and the have ksnip open the file I picked with nautilus. Nautilus Context Menu, selecting a PNG:  &quot;Select Application&quot; Dialog:  How can I achieve this? There is a &quot;View all Applications&quot; Button, but after clicking, ksnip does NOT appear in this list of apps. &quot;Find new applications&quot; does not work either. Maybe this is a duplicate, but I think we did not have the combination yet (Hack the dialog and Snap App)  (Note to self: maybe Shutter is usable again. Development had stalled for a while, or it needed a lot of deprecated versions of gnome libs as dependencies) . Is "forte" pronounced "fort" or "for-tay"? I've always heard people say something like     "Pronunciation is not my [for-tay]"   ... but I feel that I've heard that the correct pronunciation is     "Confusing people is my [fort]"   What is the proper way to pronounce this word? Option to be notified when a post I downvoted is edited Prologue:  This is an effort to follow up on  which is marked as a duplicate of  highly voted and status-declined feature request (although they seem to be different, one focusing on the OP and the other on the downvoter).   My New Year's resolution was to downvote more.  So on January 3rd or so, I saw a post that was low quality, and downvoted.  Two days later, I came back to see if it was ready to be deleted or had gotten piled with downvotes, to find it with a significant positive score!  At which point, I noticed that the answer had been significantly improved.  So I retracted my downvote, changed it to an upvote, and immediately resumed my dearth of downvoting again.  I think I have a responsibility to downvote bad posts, despite that oh-so-painful -1 rep penalty.  But if I am also going to have the responsibility to follow up on every downvote I cast, I'm not going to bother. I don't want my downvote to leave a residual penalty on posts that were once low quality, and I am not going to trouble myself to keep checking up on every post I downvoted.  Can a downvoter have an option to be notified when a post they voted down was edited?  I wouldn't make this an automatic thing, because not all downvoters want it, and it isn't applicable to all cases of downvoting (although  that this should be part of the responsibility of a downvoter).  Personally, I would make this a universal toggle on-off option on the user profile page, not a question-by-question option, but I don't have strong feelings about it. How to reduce the spacing in chemical symbols? Currently, if want to write a chemical symbol, for example, ${}^{239}Np$, this is what I type in: {}^{239}Np. The result:    But it looks bad, I feel as if the "N" and "p" should be closer, or a different font should have been used.  How could I make better looking chemical symbols? Currently I am using mainly the MathJax of the SE, but sometimes I use other TeX as well. How do multiple natural attacks work? Okay, I need some clarification. The  state this about natural attacks:     You do not receive additional natural attacks for a high base attack bonus. Instead, you receive additional attack rolls for multiple limb and body parts capable of making the attack (as noted by the race or ability that grants the attacks).   Let's say that I can shape into an . My BAB is +8/+3 and STR 5. An Oliphant has two natural attacks: Gore and Stomp (x2).  Reading the rules, it seems that I can't do two Gore attacks, like:   1st attack: AB +13. DAM 2d8 + 5 2nd attack: AB +8. DAM 2d8 + 5   because I don't get additional attacks for a high BAB. Does that mean I need to combine attacks instead? Example:   (Gore) 1st attack, AB +13. DAM 2d8 + 5 (2 Stomps) 2nd attack, AB +6*. DAM 2d6 + 5 * With the Multiattack feat, reduces secondary weapon penalty to &minus;2.   Also, does the damage from the two stomps equal 2d6 + 5, or should I roll damage for each stomp? (1st foot = 2d6 + 5, 2nd foot = 2d6 + 5). Software to read a QR code? I saw a  reading a book, but I don't have a smart phone to check it.    So I just took a picture of it and saved my PC. And I downloaded libdecoderqr0, libdecodeqr-dev, libdecodeqr-examples for reading it. But I don't know how to use it.    What do I do next, or is there a nicer way to read QR codes? What’s (not) spam? Somebody asked the following :    Clearly this is just a troll post so I (and other users) flagged it as spam. The spam flag was subsequently disputed (which I think simply means that a moderator rejected it):    Huh? Puzzled, I took another look at the list of possible flagging reasons:     I am flagging this question because         it is spam   This question is effectively an advertisement with no disclosure. It is not useful or relevant, but promotional.   it is offensive, abusive, or hate speech   This question contains content that a reasonable person would deem inappropriate for   respectful discourse.   it is a duplicate...   This question has been asked before and already has an answer.   it should be closed for another reason...   This question does not meet this site's standards and should be closed.   it is very low quality   This question has severe formatting or content problems. This question is unlikely to be salvageable through editing, and might need to be removed.   other (needs ♦ moderator attention)   This question needs a moderator's attention. Please describe exactly what's wrong.      Of these, only a few are applicable at all: “spam”, “should be closed for another reason”, “low quality” and “requires moderator attention”.  But:   it shouldn’t be closed (it has no value – it should be deleted), it’s not “low quality” (the description seems to fit actual, albeit bad, questions), and it doesn’t require moderator attention (I certainly didn’t want to bother a mod with this worthless post).   So I still think “spam” is the most fitting reason. Maybe it would help to have a more apt reason “troll post”, or maybe we could explicitly subsume this under one of the other points? Does cinnamon 2.0 really break your 13.10 desktop? What does it "they like me for me" mean?