Why did this character teach the Hogwarts students more than he should have? During GoF in the Harry Potter series, Profesor Moody       (who is actually Barty Crouch Jr. using Polyjuice Potion)    teaches the kids in his class about unforgivable curses, but then goes into it in detail about them and how they are pronounced, how they work and even how to resist some, like the Imperius curse. He even went as far as saying     "Earn you a one-way ticket to Azkaban. Correct. The Ministry says you are too young to see what these curses do. I say different! You need to know what you're up against. You need to be prepared..."         He also has them practice resisting the imperius curse      "The Imperius curse can be fought, and I’ll be teaching you how, but it takes real strength of character, and not everyone’s got it. Better avoid being hit with it…"   It would seem that teaching students spells to protect themselves from the ambush that you're a major contributor in is not the best plan. That's like arming an enemy country with a missile defense system just before your about to attack them with a missile. And i know that some might say that that he didn't think that Harry would be able to defeat the dark lord anyway but still, why not just teach the 4th year Defense Against the Dark Arts textbook information and be over with it?
Would real Moody have taught 4th year students about Unforgiveable curses? Would real Moody have taught 4th year students about Unforgiveable curses the way fake Barty Crouch Moody did?  In other words, did Barty teach about them (leaving aside his hands-on teaching approach) just to satisfy his Death Eater wishes, or did he teach them as part of his cover as Moody impersonator because Moody would have taught about them?
Upgrade to the specific php 7.1/7.2 from php 7.0 in Ubuntu 16.04 How can I upgrade to php 7.1 from php 7.0 in ubuntu 16.04 ?  If I do a php -v I get this message:  PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies     with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies I am doing exercise 3.24 of Marcus which is the following.           Let $L,K$ be number fields with $L/K$ a finite extension (of degree $[L:K] = n$) with $R = \mathcal{O}_K$ and $S = \mathcal{O}_L$. A  prime $P$ of $R$ is said to be totally ramified in $L$ iff $PS = Q^n$ for some prime $Q$ of $S$.           (a) Show that if $P$ is totally ramified in $L$ then it is totally ramified in $M$ for any intermediate field $M$, $K \subseteq M \subseteq L$.          (b) If $P$ is totally ramified in $L$ and unramified in another extension $L'$ of $K$ then $L \cap L'= K$.           (c) Give a new proof that $\Bbb{Q}(w)$ where $w = e^{2\pi i/m}$ has degree $\varphi(m)$ over $\Bbb{Q}$ (First do it for $m = p^r$ by using the fact that $(p) = (1- w)^{\varphi(m)}$ and then build up to any $m$ by using (b) above.      Now I have done (a) and (b) but when I come to (c) I fail to see how the problem is essentially circular. Even in the case $m = p^r$, I would have to use the fact that the ring of integers of $\Bbb{Q}(w)$ is $\Bbb{Z}[w]$. The proof of this fact already uses knowledge of $[\Bbb{Q}(w) : \Bbb{Q}]$ being equal to $\varphi(m)$. Am I missing something here?  Thanks. Who owns R2-D2 & C-3PO in the Prequel trilogy? Is there any concrete evidence that Anakin officially owned R2-D2 or C-3PO?  I found this episode of Star Wars: Clone Wars that shows it, but it's fairly vague... How can we close questions with bounties? I just encountered , which is very cute and funny and has nothing to do with programming.  I tried voting to close, but was informed by the system that I can't do that when there's a bounty on the question.  So, since there's a seven-day bounty, this will remain open for at least a week.  I really don't care what happens to the bounty rep, I just want to be able to close questions that are thoroughly inappropriate although not offensive. How come I never see cosmic rays in steam like they appear in a cloud chamber? PreparedStatement IN clause alternatives? What are point releases in LTS versions? There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance.  What are those "point releases" releases? Elastic net penalty I have a question about the elastic net penalty as implemented in glmnet in R compared to the original paper by Zou and Hastie (2005). In glmnet the penalty is listed as   $$ (1-\alpha)/2||\beta||_2^2+α||\beta||_1. $$  but in the paper it is  $$(1-\alpha)||\beta||_1 + \alpha||\beta||_2^2.  $$  Does anyone know where the factor $\frac12$ some from? (Never mind the fact that the $\alpha$'s were swapped between the two parameterisations.) In both cases the penalties are multiplied by $\lambda$, but what are the mathematical/technical arguments for not using a simple convex combination of the lasso and ridge penalties? Conditionally Rendering Visualforce element based on user profile I have a controller extension and want to use the Tabbed view to get rid of the Chatter caused endless scrolling.      public class UserProfileGetter {     public UserProfileGetter(ApexPages.StandardController controller) {      String userProfileName = [select u.Profile.Name, id, UserType from User u where u.id = :Userinfo.getUserId()].Profile.Name;      system.debug('Profile===================='+userProfileName);      }    }   When I run the debug it shows my Profile as 'System Administrator' correctly.  My VF page code:  &lt;apex:page standardController="Account" extensions="UserProfileGetter" showHeader="true" tabStyle="account" &gt;   &lt;apex:tab label="Opportunities" name="Opportunities" id="tabOpp" rendered="{userProfileName!='Chatter Content'}"&gt;          &lt;apex:relatedList subject="{!account}" list="opportunities" /&gt;       &lt;/apex:tab&gt;        &lt;/apex:tabPanel&gt; &lt;/apex:page&gt;   So the logic for render I want is - if the user profile name isn't Chatter Content, render. But if I have this logic in the page it won't render for anyone, including me. Ideas? Thanks  Amending - to query other variable on the user, a checkbox called "Admin Team" to display the tab for Account Teams related list, I query for both like this:  public class UserProfileGetter {     public String userProfileName {         get {             return [                     select Profile.Name                     from User                     where Id = :Userinfo.getUserId()                     ].Profile.Name;         }     }     public boolean userAdminTeam {         get {             return [                     select Admin_Team__c                     from User                     where Id = :Userinfo.getUserId()                     ].Admin_Team__c;         }     }      public UserProfileGetter(ApexPages.StandardController unused) {     }   }   And then I use like this:   &lt;apex:tab label="Account Team" name="Account Team" id="Act" rendered="{!userAdminTeam}"&gt;   Thanks all. During real, everyday use, that is?  I'm looking to upgrade a drive in a MacBook Pro, and am looking at either a 750GB/7200RPM or a 1TH/5400RPM drive.  Would I care about the speed difference? Is it worth giving up the additional space on the larger drive? Tuning PostGIS for production environments? What PostGIS documentation have you come across that has been helpful when tuning PostGIS for a production environment?  I would like to get together with my DBA to setup a Postgresql/PostGIS installation that is fit for production. I have read that there is some tweaking involved to achieve this, and I was hoping to find the answer on the .  So far I have found some documents on the OpenGeo site helpful, .  And this  is the kind of information I have found helpful, this is probably just basic DB stuff but to me its good stuff.  I would be interested to see what resources have helped others in achieving a stable production installation of PostGIS. How to measure a qubit Hamiltonian in qiskit Today I started having the following issues in Pokémon GO:   I can't spin pokéStops and get rewards When I catch pokémon, even the lowest CP ones, they escape every time. I've tried using razz berries, that doesn't work. Neither does using great balls.   I do have Internet. I'm not on wifi. I can send messages and browse Internet.  NOTE: I did try to modify my gps location and I was unsuccessful. I only got a pokémon or two and deleted them immediately. I do apologize for trying to hack it but I'm now fully legit. I have searched, but not found anything on this. I am looking for a functionality in bash, using a terminal.  Way back when, I had a user on a debian system, and a friend set me up with a convenient history search feature (I believe I used tcsh then), where I would type the beginning of a previous command, hit up-arrow, and it would do a search, based on the partial string.  E.g. if my history is:  ./script.pl ./script.pl arg1 cat output cat output | grep yada   And I type ., and press up-arrow, it would show me: ./script.pl arg1. Press it again and it would show ./script.pl, etc.  Very much like it would perform a grep on .bash_history. Is there a way to get this functionality? Say I have a code to draw a flow chart, I want now a arrow from node 3 to node 1, how can I do that?  1&lt;--| |   | 2   | |   | 3----   MWE  \documentclass[class=article,border=0pt]{standalone}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  % Define block styles \tikzset{     block/.style={rectangle, draw, line width=0.5mm, black, text width=5em, text centered,                   rounded corners, minimum height=2em},     line/.style={draw, -latex} }% &lt;- if you insist in using this in the document add this % here. \begin{document} \begin{tikzpicture}[node distance = 1cm, auto]     % Place nodes     \node [block] (BLOCK1) {a};     \node [block, below of=BLOCK1] (BLOCK2) {b};     \node [block, below of=BLOCK2, node distance=1cm] (BLOCK3) {c};     % Draw edges     \path [line] (BLOCK1) -- (BLOCK2);     \path [line] (BLOCK2) -- (BLOCK3); \end{tikzpicture} \end{document} Show that if $f(z)$ is an entire function such that it takes real values on the lines $Im(z)=0$ and $Im(z)=a$ (for some $a \in \mathbb{R}_{\neq 0})$, then $f$ is periodic with period $2 i a$.    So here is my thought process: First of all by reflection principle $f(\bar{z})=\overline{f(z)}$ so if our function $f$ is given in the strip $0 \leq Im(z) \leq a$, then its values on $-a \leq Im(z) \leq a$ follow by reflection principle. Then by imposing $f(z)=f(z+2 ia)$ we can intuitively see that this will define an entire function by looking at how the strips $na \leq Im(z) \leq 2na$ seamlessly stack on top of each other. Is this logical? And how would one prove this analytically? Is there an ingame way to change volume? I like the music, but I still prefer my own music.  Is there an ingame way to change the volume?   I can't find it. My table doesn't fit; what are my options? What is integration by parts, really? Integration by parts comes up a lot - for instance, it appears in the definition of a weak derivative / distributional derivative, or as a tool that one can use to turn information about higher derivatives of a function into information about an integral of that function. Concrete examples of this latter category include: proving that $f \in C^2(S^1)$ implies that the Fourier series of $f$ converges absolutely and uniformly, and the Taylor series expansion with the integral formula for remainder.  However, I don't feel like I really understand what integration by parts is really doing. To me, it is just an algebraic trick that follows from the fundamental theorem of calculus and the product rule. Is there some more conceptual way to think about it?  How do you think about this useful idea? Suppose that $f : \mathbb{C} \to \mathbb{C}$ is entire. Let $\Omega = \{ z : \frac{1}{2} &lt; |z| &lt; 2\}$. Furthermore, suppose that $ \mathcal{F} = \{f(kz) : k \in \mathbb{C}\}$ is a normal family of analytic functions defined on $\Omega$; the family $\mathcal{F}$ is normal on $\Omega$ iff each sequence from $\mathcal{F}$ has a subsequence converging uniformly on compact subsets of $\Omega$. Prove that $f$ is a polynomial.  I'm studying for my qualifying exam in complex analysis, and this question appears on an old exam. Usually, when I want to show that some entire $f$ is a polynomial, I just try to show that there exists some $N$ so that $f^{(k)}(0) = 0$, all $k \ge N$, but I'm having trouble getting that strategy to work here. I've been looking at the sequence $f(\frac{z}{n})$ trying to make something work, but have not had any success.   I would prefer to receive a hint or two, and then I'll try to post my own solution. Thanks in advance!