quadratic ring mod prime ideal
Quotient of the ring of integers of a number field by a prime ideal
How can I quickly get a player back into a session after their character dies? As a GM, what kind of techniques could I use to help a player re-join the gaming session after their character dies? I want to avoid any major interruptions to the flow of the adventure. I would also like to avoid having to end the session immediately or making them sit on the side-lines for the rest of the session. How do I set a user environment variable? (permanently, not session) This is irritating me. I seen several suggestions (all using different files and syntax) and none of them worked.  How do I set an environment variable for a specific user? I am on debian squeeze. What is the exact syntax I should put in the file to make ABC = "123"? Try to solve this puzzle:     The first expedition to Mars found only the ruins of a civilization.   From the artifacts and pictures, the explorers deduced that the   creatures who produced this civilization were four-legged beings with   a tentatcle that branched out at the end with a number of grasping   "fingers". After much study, the explorers were able to translate   Martian mathematics. They found the following equation:   $$5x^2 - 50x + 125 = 0$$   with the indicated solutions $x=5$ and $x=8$. The value $x=5$ seemed   legitimate enough, but $x=8$ required some explanation. Then the explorers    reflected on the way in which Earth's number system developed, and found   evidence that the Martian system had a similar history. How many fingers would    you say the Martians had?      $(a)\;10$      $(b)\;13$      $(c)\;40$      $(d)\;25$   P.S. This is not a home work. It's a question asked in an interview. How can I link to an external resource in a community-friendly way? I would like to help my fellow Stackizens, using material from my blog or other website.  But external links are sometimes viewed as excessive promotion.  From the FAQ:     Be careful, because the community   frowns on overt self-promotion and   tends to vote it down and flag it as   spam. Post good, relevant answers, and   if they happen to be about your   product or website, so be it. However,   you must disclose your affiliation in   your answers. Also, if a huge   percentage of your posts include a   mention of your product or website,   you're probably here for the wrong   reasons.   I have tried posting answers that reference my blog, and I have followed the above rules, but my answers still get flagged as spam.  How can I craft an answer that references my blog, website or other resource, but is still acceptable to the community? Using Drupal 7.14 with the PHP filter on I have the following in a Basic Page content type:  &lt;?php if ($is_mobile == TRUE):?&gt; &lt;div class="fb-like-box" data-href="http://www.facebook.com/a page" data-width="710" data-height="600" data-show-faces="false" data-border-color="#73AA4B" data-stream="true" data-header="false"&gt;&lt;/div&gt; &lt;?php else: ?&gt; &lt;div class="fb-like-box" data-href="http://www.facebook.com/a page" data-width="900" data-height="600" data-show-faces="false" data-border-color="#73AA4B" data-stream="true" data-header="false"&gt;&lt;/div&gt; &lt;?php endif; ?&gt;   I get the error message:  Notice: Undefined variable: is_mobile in eval() (line 1 of D:\websites\modules\php\php.module(80) : eval()'d code).  I sort of understand - I'm trying to grab a variable from the Drupal system but is there any way to do this? Maybe using Tokens? Here is a problem which i have not been able to do for quite sometime.   For $n \geq 2$, show that $n \nmid 2^{n}-1$.   I have thought of proving this in two ways: One by using induction which didn't actually work. Next by Fermat's little theorem we have $2^{p-1} \equiv 1 \ (\text{mod} \ p)$, which actually says that for $p \mid 2^{p}-2$. But i couldn't proceed more than this. Any ideas by which i can actually solve the problem? I am having difficulty with this proof. I have previously proved that for an automorphism on the extension field $K$ of $F$ that when restricted to $F$ is the identity automorphism must take roots of $f(x)\in F[x]$ in $E$ to roots of $f(x)$ in $E$. I was thinking of using the minimal polynomial $x^{3}-2\in\mathbb{Q}[x]$ and the result of previous problem I solved, but I suspect there are automorphisms that don't fix the subfield, so the result can't be used or I need to prove that any automorphism of an extension field must fix the subfield that is being extended or always sends roots in $E$ to roots in $E$.  I am not asking for a solution to this, but maybe a hint or pointer in the right direction. This problem is introduced in the text prior to Galois theory, so please keep that in consideration. After viewing episode 5 of season 6 of Game of Thrones, we have come to know that      the Children of the Forest created the White Walkers.   But it seems that the White Walkers attack the Children of Forest. My question is why they would do so, given their origin. How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum. How does the summoning ability affect the encounter difficulty? The Drow Mage (CR 7) has the Action Summon Demon (1/day), which allows him to summon a shadow demon (CR 4). Is the shadow demon already included in the CR of the Drow Mage, or do I have to count the shadow demon as an extra creature to determine the difficulty of the encounter? This is one of the possible ways I come out:  struct RetrieveKey {     template &lt;typename T&gt;     typename T::first_type operator()(T keyValuePair) const     {         return keyValuePair.first;     } };  map&lt;int, int&gt; m; vector&lt;int&gt; keys;  // Retrieve all keys transform(m.begin(), m.end(), back_inserter(keys), RetrieveKey());  // Dump all keys copy(keys.begin(), keys.end(), ostream_iterator&lt;int&gt;(cout, "\n"));   Of course, we can also retrieve all values from the map by defining another functor RetrieveValues.  Is there any other way to achieve this easily? (I'm always wondering why std::map does not include a member function for us to do so.) What damage will powering down instead of shutting down do? A word for a symbol which has outlived its origin I am quite sure that there is a word for a symbol which was originated by a real-life, physical prototype but has since then outlived its origin.  Most notable example: the save button with floppy drive on it. Also, to a lesser degree, envelopes in email clients, and so on.  The "anachronism" or "metonymy" are close, but not exactly what I'm searching for. What is the difference between a HMAC and a hash of data? Story ID: Boy who is stuck at 5 years old with robot nanny Here's what I remember:  The boy is 5 years old, and has been for some time, because there's a bit in which he recalls turning 5 (celebrating his 5th birthday) many different times  There's a robot nanny in the apartment with him that he learned to disable so that he can hang out with the girl, who he isn't supposed to know. (In my mind the nanny bears somewhat of a resemblance to Muthr from the Wondla series... however I definitely read this story well before reading Wondla)  There's a neighbor girl who teaches him to read (I think she's like 9), and when they first meet she asks how old he is (5 is the last age at which growth/development can be successfully (and safely?) suspended) and he lies, saying that he's 6, but doesn't know why he does.  When a child whose aging process has been stopped learns how to read, they begin aging normally again, so the parents don't want them to learn to read.  The children who have stopped aging are kept apart from other children who grow normally-- they have separate playgrounds and the like  The injection/serum used to halt the aging process was developed by a scientist, who when he first shared his findings had a 5 year old son and injected him, then told the onlookers/potential buyers/other parents to come back in 20(?) years. When they did, their children were adults and no longer needed them or were ungrateful layabouts, and the scientist's son was still 5 years old, cute, needy, etc.  The main character has a discussion about how he wants to turn 6 with his parents and they agree but only because he's already learned to read and it's irreversible.  It's kinda dark and emphasizes the need that parents have to feel wanted. Please help! I remember it so vividly and I'd love to read it again! Is it possible to overload the null-coalescing operator for a class in C#?    Say for example I want to return a default value if an instance is null and return the instance if it's not. The code would look like something like this:     return instance ?? new MyClass("Default");     But what if I would like to use the null-coalescing operator to also check if the MyClass.MyValue is set? is $f$ constant or dilation $f:\mathbb{R}^3\to\mathbb{R}, f(rx)=r^{\alpha}f(x)$ for some $\alpha&gt;0$, $\forall x\in\mathbb{R}$, for any $r\in\mathbb{R}$, could any one tell me which of the following is true?  $1.$ If $f(x)=f(y)$ whenever $||x||=||y||=\beta&gt;0$, then $f(x)=\beta ||x||^{\alpha}$  $2.$ If $f(x)=f(y)$ whenever $||x||=||y||=1$, then $f(x)= ||x||^{\alpha}$  $3.$ If $f(x)=f(y)$ whenever $||x||=||y||=1$, then $f(x)=c||x||^{\alpha}$ for some constant $c$  $4.$ If $f(x)=f(y)$ whenever $||x||=||y||$, then $f(x)$ must be a constant function. Thank you. When I wake the laptop from the sleep I need to get the VPN state as I left it (turned on). Can't find the setting of autoconnect in VPN settings... Need some easy way to ask the system to autoconnect the VPN when the internet is available.  Edit based on comments:  Ubuntu 18.04 has no option to Always connect to VPN when using using this connection. How do you detect where two line segments intersect? What are the alternatives to OS X's Spotlight?