In Philosopher’s Stone, when Hagrid introduces Quirrell, he says:     “…He was fine while he was studyin’ outta books but then took a   year off ter get some first-hand experience…”   If Quirrell took a year off, this means that he was at Hogwarts more than a year ago. Voldemort cursed the DADA post when Dumbledore denied him as a teacher, so that nobody could stay in the position for more than a year.  So who was the DADA teacher in the year that Quirrell was gone?
It's well seen throughout the series that there is a “curse” on the DADA teacher position, that no one can hold that post for more than a year. But it seems like Quirrell has been around for longer than a year. What's up with that?
dotted line with appropriate length for answering a question? Kindly have a look at this code   \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \usepackage[small,sf,bf]{titlesec}  \setromanfont{Georgia} \usepackage{amssymb}  \newcommand{\checkbox}{$\square$} \begin{document}  If appropriate \checkbox  . Why appropriate, specify? ........... If inappropriate \checkbox . Why inappropriate, specify? .............. If appropriate \checkbox . Why appropriate, specify? ...........\\ If inappropriate \checkbox . Why inappropriate, specify? ...........  \end{document}   How can I make a dotted like, of appropriate length so that it is depressed, fainter, has consistent length so that it occupies the remaining white space in the  line or has specified length. Store won't open after upgrade Python, Unicode, and the Windows console When I try to print a Unicode string in a Windows console, I get an error . UnicodeEncodeError: 'charmap' codec can't encode character .... I assume this is because the Windows console does not accept Unicode-only characters. What's the best way around this? Is there any way I can make Python automatically print a ? instead of failing in this situation? Edit:  I'm using Python 2.5.  Note: @LasseV.Karlsen answer with the checkmark is sort of outdated (from 2008). Please use the solutions/answers/suggestions below with care!!  is more relevant as of today (6 Jan 2016). When I want to register an account with Gmail now, it says "Google will send a text message containing a verification code to your mobile phone."  I don't want to give Google my mobile phone number!!  How do I get around this? Variations in the pronunciation of "the" Although there are rather simple rules determining the pronunciation of "the", native speakers quite often deviate from these rules (including, e.g., TV shows). According to the Longman Pronunciation Dictionary,     The EFL learner is advised to use [ðə] before a consonant sound (the   boy, the house), [ði] before a vowel sound (the egg, the hour). Native   speakers, however, sometimes ignore this distribution, in particular   by using [ðə] before a vowel (which is in turn usually reinforced by a   preceding ʔ), or by using [ði:] in any   environment, though especially before a hesitation pause. Furthermore,   some speakers use stressed [ðə] as a strong form, rather than the   usual [ði:].   My question is: when native speakers use [ðə] instead of [ði] before a vowel sound, do they do it on purpose or accidentally? If it is on purpose, how do they (typically) decide which pronunciation to use? What is a valid reason to use [ðə] before a vowel sound? Is it possible to run a  job which needs the  command?  Like:   sudo rm somefile This is a small exercise that I just can't seem to figure out. When I see it I'll probably go 'ahhh!', but so far I haven't made any progress.  I'd like to prove that any linear functional $\phi$ on $\ell^\infty$ that is positive, i.e. for any $(x_n) \in \ell^\infty$ such that $x_n \geq 0$ for all $n \in \mathbb{N}$ we have $\phi((x_n)) \geq 0$, is a bounded linear operator and has $\|\phi \| = \phi((1,1,...))$.  Nothing I have tried worked so far, so any hints would be appreciated, thanks! Are parallel calls to send/recv on the same socket valid? ++ is dangerous for C programmers Did Voldemort die or stay in limbo after the final battle? In Harry Potter and the Deathly Hallows, while Harry is in Kings Cross he sees something like a small child, which is the fragment of Voldemort's soul that was attached to him.     He recoiled. He had spotted the thing that was making the noise. It had   the form of a small, naked child, curled on the ground, its skin raw and rough, flayed-looking, and it lay shuddering under a seat where it had been left, unwanted, stuffed out of sight, struggling for breath.      He was afraid of it. Small and fragile and wounded though it was, he did not want to approach it. Nevertheless he drew slowly nearer, ready to jump back at any moment. Soon he stood near enough to touch it, yet he could not bring himself to do it. He felt like a coward. He ought to comfort it, but it repulsed him.      Harry Potter and The Deathly Hallows   Once Harry returns to the world of the living, that part of Voldemort's soul stays in limbo. Is this what happens to all fragments of someone's soul if he has divided his soul by creating a Horcrux? Does that mean that Voldemort's soul however crippled will stay in limbo or when all parts of his soul die, so does he? Ephemeral error message: "cryptsetup: unknown fstype, bad password or options?" I activated disk encryption for my Ubuntu 15.10 64bit installation and get every time after entering the (correct) password the error message:  cryptsetup: unknown fstype, bad password or options?  But after few seconds (without any further interaction) this error message is replaced by the expected message:  cryptsetup: sda5_crypt set up successfully  That's it and the system is started.  Any suggestions what could be the problem? Is it merely cosmetic or serious? How to prove that it is a group? Render turns out plain white For some reason, when I render out the image, it is plain white. I've checked the sky settings, and I tried applying textures, but nothing seems to change.  How can I fix this? What is the origin of the word  as in the interjection:     — It's hot in the desert.   — Well, duh!   If it is of onomatopoeic origin and only appears in modern English as some sites suggest, I would be interested to know when it started appearing in English writing. ...where each object also has references to other objects within the same array?  When I first came up with this problem I just though of something like   var clonedNodesArray = nodesArray.clone()   would exist and searched for info on how to clone objects in javascript. I did find a  on StackOverflow (answered by the very same @JohnResig) and he pointed out that with jQuery you could do  var clonedNodesArray = jQuery.extend({}, nodesArray);   to clone an object. I tried this though, this only copies the references of the objects in the array. So if I   nodesArray[0].value = "red" clonedNodesArray[0].value = "green"   the value of both nodesArray[0] and clonedNodesArray[0] will turn out to be "green". Then I tried  var clonedNodesArray = jQuery.extend(true, {}, nodesArray);   which deep copies an Object, but I got "too much recursion" and "control stack overflow" messages from both Firebug and Opera Dragonfly respectively.  How would you do it? Is this something that shouldn't even be done? Is there a reusable way of doing this in Javascript? Getting "System program problem detected" pops up regularly after upgrade This started to happen immediately after I had rebooted the first time after doing a system upgrade. It first starts with a dialogue that says "System program problem detected". Then when I try to hit 'report problem' not much happens. I am led through a dialogue that always ends up the problem cannot be solved.  I am aware this is not a lot of information, however I'm not sure which information I need to publish and how should I obtain it to debug this problem.  Here's a screenshot! Output of which command used for input to cd I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following:  which someprogram   With output:  /home/me/somedirectory/someprogram   And I would like to cd to the directory that someprogram lives in:  cd /home/me/somedirectory   I'd like to accomplish this in one line. What is the most elegant, tricky, short way to do this? I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:  MYUSERNAME ALL = NOPASSWD: /path/to/my/program   Then I tried it out:  $ sudo /path/to/my/program [sudo] password for MYUSERNAME:    Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password? What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers. Is it possible to animate the speed of a strip? I want to accelerate the speed of a video and decelerate some seconds before it ends. I wonder if it's possible to do it into the video editing. I know how to increase the speed of a strip but, what I need is a trasition between normal speed and fast speed.