im trying to make a program that is password protected and once the password is entered correctly it opens a file. when i try to run the program i get a syntax error saying "EOL while scanning string literal" where i put the file path'  heres my code.  import os while True:     print("9. exit")     print("0. close")     choice = int(input("enter password: "))     choice = int(input("enter option: "))     if (choice&gt;=1124):         if choice ==1124:                 os.starfile('C:\restriced_access\')   os.starfile('C:\restriced_access\') this is where the problem is. its supposed to open a file folder in my Windows(C:)
import os xp1 = "\Documents and Settings\" xp2 = os.getenv("USERNAME") print xp1+xp2   Gives me error   File "1.py", line 2  xp1 = "\Documents and Settings\"                                ^ SyntaxError: EOL while scannning single-quoted string   Can you help me please, do you see the problem?
Let $p, q \in \mathbb R$ be positive reals for which $p + q = 1$. How to prove that for any two natural numbers $n, m$ the following inequality is true?  $(1 - p^n)^m + (1 - q^m)^n \ge 1$  I don't have a big knowledge about solving inequalities, so I tried to use cauchy-schwarz inequality, binomial theorem and some other baisc techniques, but it lead me nowhere. I've been thinking about it for a long time and now I'm completly stuck. I just created a plane and added a wave modifier to it, to simply make it look like something fluid. Now, I have an Object that I want to place on the surface of this fluid plane. But how do I do that?  I thought of adding a driver to my Objects location, but I have no clue how to get the location of a certain vertex in runtime. Imagine a standard machine-learning scenario:     You are confronted with a large multivariate dataset and you have a   pretty blurry understanding of it. What you need to do is to make   predictions about some variable based on what you have. As usual, you   clean the data, look at descriptive statistics, run some models,   cross-validate them etc., but after several attempts, going back and   forth and trying multiple models nothing seems to work and your   results are miserable. You can spend hours, days, or weeks on such a   problem...   The question is: when to stop? How do you know that your data actually is hopeless and all the fancy models wouldn't do you any more good than predicting the average outcome for all cases or some other trivial solution?  Of course, this is a forecastability issue, but as far as I know, it is hard to assess forecastability for multivariate data before trying something on it. Or am I wrong?   Disclaimer: this question was inspired by this one  that did not attract much attention. It would be nice to have detailed answer to such question for reference. How are character special files and block special files different from regular files in a Unix-like system? Why are they called “character special” and “block special” respectively? I need to echo a string containing angle brackets (&lt; and >) to a file on a Windows machine.  Basically what I want to do is the following: echo some string &lt; with angle &gt; brackets &gt;&gt;myfile.txt  This doesn't work since the command interpreter gets confused with the angle brackets.  I could quote the whole string like this: echo "some string &lt; with angle &gt; brackets" &gt;&gt;myfile.txt  But then I have double quotes in my file that I don't want.    Escaping the brackets ala unix doesn't work either: echo some string \&lt; with angle \&gt; brackets &gt;&gt;myfile.txt  Ideas? Why directory with large amounts of entries does not shrink in size after entries are removed? Close vote notice: While the linked duplicate asks same question, the comments and the only answer do not provide an answer which draws from authoritative source. The , does in fact provide the answer I've been seeking. Thus the proposed duplicate isn't helpful, however Thomas's answer here is proper.  According to the  and personal account , directories that have large amount of entries get to a size over 4096 bytes (which can be seen with ls -l output), but once the entries are removed - the number never goes down.   The question is "why" ? Is it due to how ext4 filesystem configured to retain directory metadata ? Obviously removing the directory and recreating it isn't a solution, since it deletes original inode and creates a new one. What can be done to decrease the number manually ? Stack Overflow, Stack Exchange, Area 51: What's the difference in a nutshell? Stack Overflow, Stack Exchange, Area 51: What's the difference in a nutshell? I've read the faq's and they all seem to be the same to me - Just Q &amp; A on a variety of topics.  What's the difference in a nutshell? If I have a software engineering question, which site is best for me to use? Extruding a circular shape from a non-circular object I need to extrude a circular shape from a surface that's basically just a grid of quads. What's the best practice to do this without screwing up the topology too much?  I basically want to have a circular face I can extrude, in order to have a cylinder like protuberance on the object, something like this: Add the ability to lock a question against edits Find all natural numbers $n &gt; 1$ and $m &gt; 1$ such that $1!3!5!\cdots(2n - 1)! = m!$   I have been thinking about coming up with some inequalities which would narrow the possible range of pairs $(n, m)$, however the best I have been able to find so far are $m \ge 2n - 1$ and $m \lt n^2$, which is clearly not enough.  Update. The question has tag combinatorics as it is from a book about combinatorics, so there must be at least partly combinatorial solution. how can i automatically record every terminal session? How to calculate 95% CI for cumulative incidence rate using R? I simply can't figure out what the capacity of this circuit is.  I can do the math myself, I just need a hint how to create an equivalent circuit where it is obvious what is parallel and what is in series... How prove this equation $\alpha=\aleph_{0}\alpha$ Question:     let $\alpha$ be a infinite cardinal , show that:   $$\alpha=\aleph_{0}\alpha$$   where $\aleph_{0}$ is the cardinality of the natural numbers is denoted aleph-null   this equation is from a book,and I can't prove it,and the author say this is important equation,and can't prove it.Thank you for you help Imagine a black hole that is fast-approaching its final exponential throws of Hawking evaporation. Presumably, at all points in this end process there will remain a region that identifiably remains &quot;the black hole&quot; until the the very end, as opposed to huge swarm of fundamental particles that is being radiated out from it. As the mass of the black hole descends to that of individual particles, it would seem entirely feasible that the very last fermionic Hawking radiation event available to the almost-deceased black hole could leave it with an unbalanced charge, e.g. -1, and an unbalanced spin, say 1/2. It would also have some kind of mass of course, but that aspect of the final residue could be fine-tuned to any specific value by photon emissions of arbitrary frequencies. After photon emission mass trimming, the resulting black hole residuum would reach a point where it is no longer be able to evaporate into any known particle, because there is no longer any lower-mass option available to it for removing the -1 charge and 1/2 spin. The black hole residuum will at that point be stuck, so to speak, stuck with exact charge, spin, and mass features of an electron. And so my question: Is it an electron? And if so, by equivalence, is every electrons in the universe really just a particular type of black hole that cannot evaporate any further due to the constraints of charge and spin conservation? And if so, why are charge and spin so uniquely combined in such black hole remnants, so that e.g. a remnant of -1 charge and zero spin is not permitted, at least not commonly, and the mass is forced to a very specific associated level? Is there anything in the current understanding of general relativity that would explain such a curious set of restrictions on evaporation? The full generalization of this idea would of course be that all forms of black hole evaporation are ultimately constrained in ways that correspond exactly to the Standard Model, with free fundamental particles like electrons being the only stable end states of the evaporation process. The proton would be a fascinating example of an evaporation that remains incomplete in a more profound way, with the three quarks remaining incapable of isolated existence within spacetime. The strong force, from that perspective, would in some odd sense have to be a curious unbalanced remnant of those same deeper constraints on the overall gravitational evaporation process. This may all be tautological, too! That is, since Hawking radiation is guided by the particles possible, the constraints I just mentioned may be built-in and thus entirely trivial in nature. However, something deeper in the way they work together would seem... plausible, at least? If an electron is an unbalanced black hole, then the particles given off would also be black holes, and the overall process would be not one of just particle emission, but of how black holes split at low masses. Splitting with constraints imposed by the structure of spacetime itself would be a rather different way of looking at black hole evaporation, I suspect. (final note: This is just a passing thought that I've mulled over now and then through the years. Asking it was inspired by  by Ben Crowell. I should add that I doubt very seriously that that my wild speculations above have anything to do with Wheeler's concept of geons, though.) Where can I find a list of Magic Items by rarity? I am currently looking for a list of Magic Items (non-homebrew and preferably Armor/Weapons) arranged in Common, Uncommon, Rare, Very Rare, and Legendary. There is not one in the Players Handbook or Dungeon Masters Guide that is appropriate.  Does such a list exist and if so, where can I find it? Soql query on parents other child object I want to write a soql query , My scenario is as follows. I have three objects objectA,objectB,objectC. objectA is the parent object for both objectB,objectC.   objectA - objectB  (Master-detail relationship) objectA - objectC  (Master-detail relationship)`   ObjectB has two fields:   Start_date__c End_date__c   ObjectC has a field:    Date__c   Now i want to retrieve records with date__c in objectC those were in between start_date__c and end_date__c of objectB. how can i achieve such functionality . Relevant:  and   The answers in the linked question don't quite help me. Specifically, what happens with this case:  My three pens are green. Each of my three pens are green. Each of my three pens is green.  Part of the confusion seems to stem from the inclusion of &quot;three&quot;:  My pens are green. Each of my pens are green. Each pen is green.  There doesn't seem to be a way to rewrite the last example with &quot;three&quot;:  Each three pen is green.  The more common application would be:  All three pens are green.  But in the event that I want to say, &quot;Each of my three pens are green&quot; which is correct? And, in the event that the correct sentence is &quot;each of my three pens is green&quot; why does prepending &quot;each of&quot; to the beginning of &quot;my three pens are green&quot; change the verb? In s08e03 we see Melisandre and Arya meet for the second time after Season 3 when Melisandre said to Arya back then:     "I see a darkness in you. And in that darkness, eyes staring back at me. Brown eyes, blue eyes, green eyes. Eyes you'll shut forever. We will meet again. "   I think Blue Eyes referred to the Night King and the White Walkers since we saw Arya killing the Night King in s08e03.   I also believe that Brown Eyes referred to Walder Frey who was also killed by Arya back in Season 6.    But where do the Green Eyes reffer to? I don't remember her executing any important character with green eyes. My guess is that:       they reffer to Cersei. Do you think that  the prophecy implies that she is going to bring her hateful enemy down somehow? This is a trivial problem, but it annoys me that I can't get to the bottom of it:  I'm running Windows 8, Powershell version 3.0. By right-clicking on the title bar I can go into the Properties and change the font, size, background colour etc without any problems.  After closing and restarting Powershell, all of the changes I've made stick except that if I've set the font to Lucida Console then on reopening I get the Raster font.  (Note that all of the above applies to when I run Powershell as Administrator.)  So:   If I set the font to Lucida, then it switches to Lucida for the remainder of the session. If I set the font to anything other than Lucida, then it stays as that after closing and reopening. If I alter the window sizes or text colours or anything else, the changes persist after reopening. The only thing that goes wrong is that if I set the font to Lucida, it switches to 'Raster fonts' when I reopen. But cmd and powershell ISE don't have this problem - only the powershell console.   Can anyone suggest what might be going wrong?  (One observation I've made is that upon re-opening Powershell after setting the font to Lucida, at first the width of the window is what it would be if the font were Lucida, but then after a second, it widens slightly to accommodate the raster font.)