Lyircs of Free by Natalia Kills:     I'm free      I just spent all my money       but I rocked that like it don't cost a thing   Shouldn't it be "I've just spent all my money"? As far as I remember, our English told us to use Present Prefect in such case because of the just.
To me, using Present Perfect form means the event can occur again. So, saying      someone has died   may not be grammatically correct.  Also, I noticed (it might be just coincidence):     passed away   is used more often than     has passed away   Is using Present Perfect correct here?
Calling a function of a module by using its name (a string) What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this. I posted a comment to a duplicate question on . But I decided to delete it. Afterwards I voted as duplicate and thought a comment would be generated like     possible duplicate of ...   But it didn't. My guess is that the duplicate-comment won't be generated if a comment exists with that link, even if deleted. Every finite set contains its supremum: proof improvement. Every finite subset of $\mathbb R$ contains its supremum (and its infimum)   Proof Let $A=\{a_1,...,a_n\}$ be a finite subset of $\mathbb{R}$. Since it is non-empty and it is bounded ($\max A$ is an upper bound), it has supremum, that is $\exists \sup A$ and by definition $\forall a \in A \;\, a \leq \sup A$. Let's suppose that $\sup A  \not\in A$ then, since $\max A \in A$ we have that $\max A &lt; \sup A$. But considering that $\mathbb Q$ is dense in $\mathbb R$ we can conclude that $\exists r \in \mathbb Q$ s.t. $\max A &lt; r &lt; \sup A$, but this is absurd since $r$ is an upper bound of $A$ and it is lower than the supremum. Necessarily, $\sup A\in A$.  Is there anything wrong? Is there any way to prove this without using density of $\mathbb Q$ or another property? Thanks in advance. Direction of angular velocity Angular velocity is the rate of angular displacement about an axis. Its direction is determined by right hand rule.  According to right hand rule, if you hold the axis with your right hand and rotate the fingers in the direction of motion of the rotating body then thumb will point the direction of the angular velocity.  The direction of angular velocity is above or below the plane. But what does it mean? I mean in linear velocity the direction of velocity is in the direction of motion of body but what does it mean that body is moving in one direction while the direction of its angular velocity is in another direction? Is there any "official" guidance to upgrading from Lubuntu 18.04 LTS (LXDE) to Lubuntu 18.10 (LXQt) Showing that the set of fixed points is a smooth manifold Let $M$ be a smooth manifold and Let $G$ be a finite group acting on $M$ by diffeomorphisms. Show that the set of fixed point $F=\{m \in M: g.m=m \}$ is a smooth manifold. I am unable to deal with the set of fixed points. It doesn't seem to be an open set. It would have been trivial if it was open. Any hints? What is the value of $\sum\limits_{i=1}^\infty\frac{1}{p_{p_i}}$ where $p_{i}$ is the $i$th prime? What is the value of $\sum\limits_{i=1}^\infty\dfrac{1}{p_{p_i}}$ where $p_n$ is the nth prime (and so $p_{p_n}$ is the $k$th prime, where $k$ is the $n$th prime) ?  Thus $\frac{1}{3}+\frac{1}{5}+\frac{1}{11}+...=$ ??  How do I efficiently decide if $\sum_{i=1}^\infty\dfrac{1}{p_{p_i}}\gt1$ is true without using a computer ?  I assume this infinite sum is an irrational number. Has this already been proven ? The recent discovery by the LIGO made me wonder about this.  We know that there exists a CMBR, Cosmic Microwave Background Radiation, a blanket of electromagnetic energy covering the universe, made by the Big Bang.  But, the big bang was an explosive event. The huge "shockwave" made by it sent ripples in space time. (Primordial gravitational waves)  Wouldn't these ripples flood the universe creating sort of a Cosmic Gravitational Background Radiation (not exactly radiation)?  If such waves do flood the universe, couldn't a much more sensetive version of LIGO be able to detect this and use it as a contrast to create "gravitational telescopes"? What does the term "86'd" relate to? What does it mean when someone or something is referred to as being "86'd"? How can I check if a program exists from a Bash script? Has anyone had any success using twitters typeahead.js within visualforce pages? I am trying to get  to work within salesforce visualforce pages.  I have a basic vf page from  example, but it does not respopnd, I suspect there may be some "unknown" workaround needed? Does anyone know?  &lt;apex:page standardController="Contact" showHeader="false" sidebar="false" docType="html-5.0"  standardStylesheets="false"&gt;  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="http://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.js"&gt;&lt;/script&gt;      &lt;div id="the-basics"&gt;   &lt;input class="typeahead" type="text" placeholder="States of USA"/&gt; &lt;/div&gt;  &lt;script&gt;     var substringMatcher = function(strs) {       return function findMatches(q, cb) {         var matches, substrRegex;          // an array that will be populated with substring matches         matches = [];          // regex used to determine if a string contains the substring `q`         substrRegex = new RegExp(q, 'i');          // iterate through the pool of strings and for any string that         // contains the substring `q`, add it to the `matches` array         $.each(strs, function(i, str) {           if (substrRegex.test(str)) {             // the typeahead jQuery plugin expects suggestions to a             // JavaScript object, refer to typeahead docs for more info             matches.push({ value: str });           }         });          cb(matches);       };     };      var states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California',       'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii',       'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana',       'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota',       'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire',       'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota',       'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island',       'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont',       'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'     ];      $('#the-basics .typeahead').typeahead({       hint: true,       highlight: true,       minLength: 1     },     {       name: 'states',       displayKey: 'value',       source: substringMatcher(states)     }); &lt;/script&gt; java.io.IOException: An existing connection was forcibly closed by the remote host Upon entering any given minecraft server, after a minute or two I am forced out of the server, and I'm given the following error:  java.io.IOException: An existing connection was forcibly closed by the remote host.  What does this mean, and how can I prevent it from happening again? How to do integer & float calculations, in bash or other languages/frameworks? Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability?  I tried to flatten such a list with a nested list comprehension, like this:  [image for image in menuitem for menuitem in list_of_menuitems]   But I get in trouble of the NameError variety there, because the name 'menuitem' is not defined.  After googling and looking around on Stack Overflow, I got the desired results with a reduce statement:  reduce(list.__add__, map(lambda x: list(x), list_of_menuitems))   But this method is fairly unreadable because I need that list(x) call there because x is a Django QuerySet object.  Conclusion:   Thanks to everyone who contributed to this question.  Here is a summary of what I learned.  I'm also making this a community wiki in case others want to add to or correct these observations.  My original reduce statement is redundant and is better written this way:  &gt;&gt;&gt; reduce(list.__add__, (list(mi) for mi in list_of_menuitems))   This is the correct syntax for a nested list comprehension (Brilliant summary !):  &gt;&gt;&gt; [image for mi in list_of_menuitems for image in mi]   But neither of these methods are as efficient as using itertools.chain:  &gt;&gt;&gt; from itertools import chain &gt;&gt;&gt; list(chain(*list_of_menuitems))   And as @cdleary notes, it's probably better style to avoid * operator magic by using chain.from_iterable like so:  &gt;&gt;&gt; chain = itertools.chain.from_iterable([[1,2],[3],[5,89],[],[6]]) &gt;&gt;&gt; print(list(chain)) &gt;&gt;&gt; [1, 2, 3, 5, 89, 6] Profile changes in Q&A are not pushed to Area 51 I just noticed that the info text on  is an older version of the text in .  I found  from April 2016 where Adam Lear says:     Area 51 is a separate codebase. It's also heavily outdated. Currently we can push a profile update from Q&amp;A to Area 51, but not the other way around   I think the pushing isn't working anymore. I just updated my text on SO again and it was changed in all my accounts, except Area 51. How to remove the handles from this faucet My bathroom faucet is leaking around the base of my right handle.  With previous faucets I've been able to use a set screw to loosen the handle and replace the washer.  With these, though, I can't seem to pop off the faucet handle.  Does anyone know how to remove this handle?  Does anyone know the brand of this faucet?  Update -- Nov 29th  I've already tried to get those cap ends off.  I tried to use some pliers and unscrew them, but couldn't remove it.  I tried taking a small flat head and popping off the ends.  Still nothing.  It doesn't seem like the come off.  I also tried unscrewing the handles, but they just don't see to turn for me.  Also there is definitely no set screw on the handles.  I've searched all around the faucet and found nothing indicating a set screw. Get current URL with jQuery? I am using jQuery. How do I get the path of the current URL and assign it to a variable?  Example URL:  http://localhost/menuname.de?foo=bar&amp;amp;number=0 Do Stack Overflow and other Stack Exchange sites have an app I can use? Names of close-voters are not visible in the post notice but in the revision history and timeline I am not a user with close/reopen votes privileges on Travel Stack Exchange, therefore I can't see the names of the close voters :    However, they are visible when going to the revision history:    or the timeline of the post:    This also happens when I am not logged in: I cannot see the banner (and so if the question has been closed), but from the revision history/timeline of the post I can get that information.  Shouldn't names of close-voters be completely hidden from people without close/reopen privileges (even if the revision history is a little hard to find)? Stuck in a loop at login prompt after changing shell to zsh